File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 55
66set -eu -o pipefail
77
8+ # Disable CGO - we don't need it for these plugins.
9+ #
10+ # Important: this must be done before sourcing "./scripts/build/.variables",
11+ # because some other variables are conditionally set whether CGO is enabled.
12+ export CGO_ENABLED=0
13+
814source ./scripts/build/.variables
915
1016for p in cli-plugins/examples/* " $@ " ; do
@@ -15,5 +21,5 @@ for p in cli-plugins/examples/* "$@" ; do
1521 mkdir -p " $( dirname " ${TARGET_PLUGIN} " ) "
1622
1723 echo " Building $GO_LINKMODE $( basename " ${TARGET_PLUGIN} " ) "
18- (set -x ; CGO_ENABLED=0 GO111MODULE=auto go build -o " ${TARGET_PLUGIN} " -tags " ${GO_BUILDTAGS} " -ldflags " ${GO_LDFLAGS} " ${GO_BUILDMODE} " github.com/docker/cli/${p} " )
24+ (set -x ; GO111MODULE=auto go build -o " ${TARGET_PLUGIN} " -tags " ${GO_BUILDTAGS} " -ldflags " ${GO_LDFLAGS} " ${GO_BUILDMODE} " github.com/docker/cli/${p} " )
1925done
You can’t perform that action at this time.
0 commit comments