Commit b986c4fd authored by Artem Leshchev's avatar Artem Leshchev
Browse files

s5cmd: inject version in the binary

Make s5cmd version output the right version. It is also supposed to output
the git commit hash, but I'm not sure how to get it in a sane way.
parent 006d5b41
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@ buildGoModule (finalAttrs: {

  vendorHash = null;

  ldflags = [ "-X github.com/peak/s5cmd/v2/version.Version=v${finalAttrs.version}" ];

  # Skip e2e tests requiring network access
  excludedPackages = [ "./e2e" ];