Skip to content

Commit

Permalink
Disable CGO on build
Browse files Browse the repository at this point in the history
Signed-off-by: Jose R. Gonzalez <[email protected]>
  • Loading branch information
komish committed Jun 21, 2023
1 parent 4447b0c commit 4cb91c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ fmt: install.gofumpt

.PHONY: bin
bin:
go build -o ./out/chart-verifier main.go
CGO_ENABLED=0 go build -o ./out/chart-verifier main.go

.PHONY: lint
lint: install.golangci-lint
$(GOLANGCI_LINT) run

.PHONY: bin_win
bin_win:
env GOOS=windows GOARCH=amd64 go build -o .\out\chart-verifier.exe main.go
env GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o .\out\chart-verifier.exe main.go

.PHONY: test
test:
Expand Down

0 comments on commit 4cb91c1

Please sign in to comment.