Merge pull request #110427 from svrana/go-minimock/set-version
go-minimock: include version in build flags
This commit is contained in:
commit
bee0930f47
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,10 @@ buildGoModule rec {
|
|||
sha256 = "0r0krbwvx5w1z0yv2qqi92irbsfhkvwvaigy350cvcz9gmcppj4h";
|
||||
};
|
||||
|
||||
buildFlagsArray = [
|
||||
"-ldflags=-s -w -X main.version=${version}"
|
||||
];
|
||||
|
||||
vendorSha256 = "1macwm6hybjinwnx62v146yxydcn5k5r587nxwkf4ffy76s2m3jc";
|
||||
|
||||
doCheck = true;
|
||||
|
|
Loading…
Reference in a new issue