go-minimock: include version in build flags
minimock includes the version in the mocks it generates so not having it set properly annoys co-workers.
This commit is contained in:
parent
55e8a35caf
commit
723e9102c9
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