Unverified Commit bb2fcd11 authored by figsoda's avatar figsoda Committed by GitHub
Browse files

Merge pull request #226153 from pbek/patch-4

pet: add ldflags to set version of application
parents c433ee9f 2944ade4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -13,6 +13,10 @@ buildGoModule rec {

  vendorSha256 = "sha256-dUvp7FEW09V0xMuhewPGw3TuAic/sD7xyXEYviZ2Ivs=";

  ldflags = [
    "-s" "-w" "-X=github.com/knqyf263/pet/cmd.version=${version}"
  ];

  doCheck = false;

  subPackages = [ "." ];