-
Couldn't load subscription status.
- Fork 17
Description
I package for nixpkgs and in our builds we don't have .git either because we fetch the release source tar.gz which doesn't have .git or we do a git clone and then delete the .git dir because it's not reproducible.
I believe debian also handles things in a similar way since someone working on debian posted a script that should be able to clean up the .git dir
NixOS/nixpkgs#100498 (comment) (cc: @Nihlus)
We could apply the script to the .git dir and keep it but just being able to set the ldflags is probably still desirable, especially since there are some cases of people complaining about buildinfo breaking reproducibility and people wanting to strip it
And after https://go-review.googlesource.com/c/go/+/414794/ -trimpath will allow for removing it