Merge pull request #110427 from svrana/go-minimock/set-version

go-minimock: include version in build flags
This commit is contained in:
Sandro 2021-01-24 02:31:22 +01:00 committed by GitHub
commit bee0930f47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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