build: disable cgo for makefile build (!97)
* Disable `CGO` in the makefile build to avoid dependencies on external C libraries * This also aligns with the build done for releases and docker images https://gitlab.com/hectorjsmith/fail2ban-prometheus-exporter/-/merge_requests/97
This commit is contained in:
parent
5f879e1921
commit
b9ab77d62d
1 changed files with 1 additions and 1 deletions
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 a new issue