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:
Hector 2023-06-22 15:22:42 +00:00
commit 5275d280be

View file

@ -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} \