Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
fix: enable cgo when building client with docker
Browse files Browse the repository at this point in the history
Signed-off-by: lowzj <[email protected]>
  • Loading branch information
lowzj committed Mar 4, 2019
1 parent d102743 commit 1141dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/build-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ build-dfdaemon-docker() {
-v "$(pwd)"/.cache:/.cache \
-e GOOS="${GOOS}" \
-e GOARCH="${GOARCH}" \
-e CGO_ENABLED=0 \
-e CGO_ENABLED=1 \
-w /go/src/${PKG} \
${BUILD_IMAGE} \
go install -v -pkgdir /go/pkg -ldflags "${LDFLAGS}" ./cmd/dfdaemon
Expand All @@ -72,7 +72,7 @@ build-dfget-docker() {
-v "$(pwd)"/.cache:/.cache \
-e GOOS="${GOOS}" \
-e GOARCH="${GOARCH}" \
-e CGO_ENABLED=0 \
-e CGO_ENABLED=1 \
-w /go/src/${PKG} \
${BUILD_IMAGE} \
go install -v -pkgdir /go/pkg -ldflags "${LDFLAGS}" ./cmd/dfget
Expand Down

0 comments on commit 1141dbd

Please sign in to comment.