mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
gofumpt: disable CGO, set ldflags, inject version
This commit is contained in:
parent
6447db791a
commit
4016a8de10
@ -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$"
|
||||
|
Loading…
Reference in New Issue
Block a user