File tree 2 files changed +2
-3
lines changed 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,7 @@ etcd_build() {
33
33
out=" bin"
34
34
if [ -n " ${BINDIR} " ]; then out=" ${BINDIR} " ; fi
35
35
toggle_failpoints
36
- # Static compilation is useful when etcd is run in a container
37
- CGO_ENABLED=0 go build $GO_BUILD_FLAGS -installsuffix cgo -ldflags " -s -X ${REPO_PATH} /cmd/vendor/${REPO_PATH} /version.GitSHA=${GIT_SHA} " -o ${out} /etcd ${REPO_PATH} /cmd
36
+ go build $GO_BUILD_FLAGS -installsuffix cgo -ldflags " -s -X ${REPO_PATH} /cmd/vendor/${REPO_PATH} /version.GitSHA=${GIT_SHA} " -o ${out} /etcd ${REPO_PATH} /cmd
38
37
CGO_ENABLED=0 go build $GO_BUILD_FLAGS -installsuffix cgo -ldflags " -s" -o ${out} /etcdctl ${REPO_PATH} /cmd/etcdctl
39
38
}
40
39
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ if (-not $env:GOPATH) {
38
38
}
39
39
40
40
# Static compilation is useful when etcd is run in a container
41
- $env: CGO_ENABLED = 0
41
+ $env: CGO_ENABLED = 1
42
42
$env: GO15VENDOREXPERIMENT = 1
43
43
$GIT_SHA = " $ ( git rev- parse -- short HEAD) "
44
44
go build - a - installsuffix cgo - ldflags " -s -X $REPO_PATH /cmd/vendor/$REPO_PATH /version.GitSHA=$GIT_SHA " - o bin\etcd.exe " $REPO_PATH \cmd"
You can’t perform that action at this time.
0 commit comments