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

Commit 1141dbd

Browse files
committed
fix: enable cgo when building client with docker
Signed-off-by: lowzj <[email protected]>
1 parent d102743 commit 1141dbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/build-client.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ build-dfdaemon-docker() {
5353
-v "$(pwd)"/.cache:/.cache \
5454
-e GOOS="${GOOS}" \
5555
-e GOARCH="${GOARCH}" \
56-
-e CGO_ENABLED=0 \
56+
-e CGO_ENABLED=1 \
5757
-w /go/src/${PKG} \
5858
${BUILD_IMAGE} \
5959
go install -v -pkgdir /go/pkg -ldflags "${LDFLAGS}" ./cmd/dfdaemon
@@ -72,7 +72,7 @@ build-dfget-docker() {
7272
-v "$(pwd)"/.cache:/.cache \
7373
-e GOOS="${GOOS}" \
7474
-e GOARCH="${GOARCH}" \
75-
-e CGO_ENABLED=0 \
75+
-e CGO_ENABLED=1 \
7676
-w /go/src/${PKG} \
7777
${BUILD_IMAGE} \
7878
go install -v -pkgdir /go/pkg -ldflags "${LDFLAGS}" ./cmd/dfget

0 commit comments

Comments
 (0)