Skip to content

Commit

Permalink
fix: disable cgo
Browse files Browse the repository at this point in the history
CGO builds are causing the binaries to be non-launchable on more dated
OS images. This change disables CGO to prevent portability issues.
  • Loading branch information
prichrd committed Jul 4, 2024
1 parent 42f0916 commit 23ee2b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ go = docker run --rm -i \
-e "GOARCH=$(GOARCH)" \
-e "GO111MODULE=on" \
-e "GOFLAGS=-mod=vendor" \
-e "CGO_ENABLED=0" \
-e "GOCACHE=$(docker_dir)/target/.cache/go" \
-v "$(CURDIR):$(docker_dir)" \
-w "$(docker_dir)" \
Expand All @@ -44,6 +45,7 @@ go = GOOS=$(GOOS) \
GO111MODULE=on \
GOFLAGS=-mod=vendor \
GOCACHE=$(docker_dir)/target/.cache/go \
CGO_ENABLED=0 \
$(shell which go)
endif

Expand Down

0 comments on commit 23ee2b1

Please sign in to comment.