Merge pull request #226153 from pbek/patch-4
pet: add ldflags to set version of application
This commit is contained in:
commit
bb2fcd11f4
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-dUvp7FEW09V0xMuhewPGw3TuAic/sD7xyXEYviZ2Ivs=";
|
||||
|
||||
ldflags = [
|
||||
"-s" "-w" "-X=github.com/knqyf263/pet/cmd.version=${version}"
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
|
Loading…
Reference in a new issue