rishi added a new comment to an issue you are following: `` I agree that `-trimpath` doesn't make any difference for official Fedora packages. Although, I wonder if it might help with ad-hoc local uses of `rpmbuild`.
I filed this issue in the context of [this](https://github.com/containers/toolbox/pull/448) Toolbox pull request. You might have to *show resolved* for the entire discussion.
In short, I was trying to use Fedora's `%gobuildflags` as a reference to figure out the best set of build flags to use for upstream builds, and not seeing `-trimpath` in the list made me wonder if it might have negative side-effects. It was even more confusing because Fedora builds do pass `-trimpath` to the Go compiler, but that's different than passing it to the top-level `go build` invocation.
After reading the Go sources to get to the bottom of this, I no longer have a very strong opinion about this. Up to you. :) ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/25