Skip to content

Commit dc54eb1

Browse files
committed
ci: set CGO_ENABLED=0
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent e698209 commit dc54eb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ ifeq ($(STATIC),)
3030
$(eval LDFLAGS := $(LDFLAGS_BASE))
3131
else
3232
@echo "Building Static Binary"
33-
$(eval GO_BUILDTAGS := osusergo netgo)
33+
$(eval GO_BUILDTAGS := netgo)
3434
$(eval LDFLAGS := $(LDFLAGS_BASE) -extldflags '-static')
3535
endif
36-
GOOS=linux go build \
36+
CGO_ENABLED=0 GOOS=linux go build \
3737
$(if $(GO_BUILDTAGS),-tags "$(GO_BUILDTAGS)") \
3838
-ldflags "$(LDFLAGS)" \
3939
-v -o $(BINARY) $(PACKAGE)/cmd/finch-daemon

0 commit comments

Comments
 (0)