3
0
Fork 0
forked from mirrors/nixpkgs

golangci-lint: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-21 18:23:48 +10:00
parent 69c7777320
commit b42bac858d

View file

@ -19,9 +19,9 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
preBuild = ''
buildFlagsArray+=("-ldflags=-s -w -X main.version=${version} -X main.commit=v${version} -X main.date=19700101-00:00:00")
'';
ldflags = [
"-s" "-w" "-X main.version=${version}" "-X main.commit=v${version}" "-X main.date=19700101-00:00:00"
];
postInstall = ''
for shell in bash zsh; do