Skip to content

Commit 18fa84a

Browse files
authored
Merge pull request #32 from nginxinc/areste-cgo-issue
Disable GCO to address issue #30
2 parents 1bdcd36 + 3299e5a commit 18fa84a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/go-builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
for OS in $OSES; do
2828
for ARCH in $ARCHS; do
2929
echo "OS: ${OS} and ARCH: ${ARCH}"
30-
GOOS=${OS} GOARCH=${ARCH} go build -ldflags "-w -s -X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Build=$BUILD\
30+
CGO_ENABLED=0 GOOS=${OS} GOARCH=${ARCH} go build -ldflags "-w -s -X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Build=$BUILD\
3131
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION"\
3232
-o release/kubectl-nginx_supportpkg_${VERSION}_${OS}_${ARCH}/kubectl-nginx_supportpkg
3333
cp LICENSE release/kubectl-nginx_supportpkg_${VERSION}_${OS}_${ARCH}/

.github/workflows/release-builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
for OS in $OSES; do
3535
for ARCH in $ARCHS; do
3636
echo "OS: ${OS} and ARCH: ${ARCH}"
37-
GOOS=${OS} GOARCH=${ARCH} go build -ldflags "-w -s -X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Build=$BUILD\
37+
CGO_ENABLED=0 GOOS=${OS} GOARCH=${ARCH} go build -ldflags "-w -s -X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Build=$BUILD\
3838
-X github.com/nginxinc/nginx-k8s-supportpkg/pkg/version.Version=$VERSION"\
3939
-o release/kubectl-nginx_supportpkg_${VERSION}_${OS}_${ARCH}/kubectl-nginx_supportpkg
4040
cp LICENSE release/kubectl-nginx_supportpkg_${VERSION}_${OS}_${ARCH}/

0 commit comments

Comments
 (0)