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:
Shaw Vrana 2021-01-21 17:23:25 -08:00
parent 55e8a35caf
commit 723e9102c9

View file

@ -11,6 +11,10 @@ buildGoModule rec {
sha256 = "0r0krbwvx5w1z0yv2qqi92irbsfhkvwvaigy350cvcz9gmcppj4h";
};
buildFlagsArray = [
"-ldflags=-s -w -X main.version=${version}"
];
vendorSha256 = "1macwm6hybjinwnx62v146yxydcn5k5r587nxwkf4ffy76s2m3jc";
doCheck = true;