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 ]; 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