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 ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
preBuild = ''
|
ldflags = [
|
||||||
buildFlagsArray+=("-ldflags=-s -w -X main.version=${version} -X main.commit=v${version} -X main.date=19700101-00:00:00")
|
"-s" "-w" "-X main.version=${version}" "-X main.commit=v${version}" "-X main.date=19700101-00:00:00"
|
||||||
'';
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for shell in bash zsh; do
|
for shell in bash zsh; do
|
||||||
|
|
Loading…
Reference in a new issue