Merge branch 'build/disable-cgo-for-makefile-build' into 'main'
build: disable cgo for makefile build See merge request hectorjsmith/fail2ban-prometheus-exporter!97
This commit is contained in:
commit
5275d280be
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -34,7 +34,7 @@ check/fmt: download
|
|||
# Build project
|
||||
.PHONY: build
|
||||
build:
|
||||
go build \
|
||||
CGO_ENABLED=0 go build \
|
||||
-ldflags "\
|
||||
-X main.version=${shell git describe --tags} \
|
||||
-X main.commit=${shell git rev-parse HEAD} \
|
||||
|
|
Loading…
Reference in a new issue