gofumpt: disable CGO, set ldflags, inject version

This commit is contained in:
Paul Meyer 2023-12-14 15:13:21 +01:00
parent 6447db791a
commit 4016a8de10

View File

@ -13,6 +13,10 @@ buildGoModule rec {
vendorHash = "sha256-W0WKEQgOIFloWsB4E1RTICVKVlj9ChGSpo92X+bjNEk=";
CGO_ENABLED = "0";
ldflags = "-s -w -X main.version=v${version}";
checkFlags = [
# Requires network access (Error: module lookup disabled by GOPROXY=off).
"-skip=^TestScript/diagnose$"