Merge pull request #226153 from pbek/patch-4

pet: add ldflags to set version of application
This commit is contained in:
figsoda 2023-04-15 10:05:26 -04:00 committed by GitHub
commit bb2fcd11f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,10 @@ buildGoModule rec {
vendorSha256 = "sha256-dUvp7FEW09V0xMuhewPGw3TuAic/sD7xyXEYviZ2Ivs=";
ldflags = [
"-s" "-w" "-X=github.com/knqyf263/pet/cmd.version=${version}"
];
doCheck = false;
subPackages = [ "." ];