golangci-lint: buildFlagsArray -> ldflags
This commit is contained in:
parent
69c7777320
commit
b42bac858d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue