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
2
Makefile
2
Makefile
@ -34,7 +34,7 @@ check/fmt: download
|
|||||||
# Build project
|
# Build project
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
go build \
|
CGO_ENABLED=0 go build \
|
||||||
-ldflags "\
|
-ldflags "\
|
||||||
-X main.version=${shell git describe --tags} \
|
-X main.version=${shell git describe --tags} \
|
||||||
-X main.commit=${shell git rev-parse HEAD} \
|
-X main.commit=${shell git rev-parse HEAD} \
|
||||||
|
Loading…
Reference in New Issue
Block a user