rishi reported a new issue against the project: `go-rpm-macros` that you are following: `` See [this](https://github.com/containers/toolbox/pull/448) [Toolbox](https://github.com/containers/toolbox) discussion for context.
It might be good to include `-trimpath` in `%gobuild` and `%gobuildflags`. Apparently Arch Linux already uses it. ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/25
rishi added a new comment to an issue you are following: `` Ping ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/25
harrymichal added a new comment to an issue you are following: `` Ping :) ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/25
The issue: `Consider using -trimpath` of project: `go-rpm-macros` has been assigned to `alexsaezm` by alexsaezm.
eclipseo added a new comment to an issue you are following: `` Ping @alexsaezm Could you cut a new release once you fix this. I've merged the change regarding the tilde handling, it is needed by people packaging from SourceHut. ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/25
alexsaezm added a new comment to an issue you are following: `` I created a PR with the change in case anyone has suggestions:
https://pagure.io/go-rpm-macros/pull-request/31 ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/25
alexsaezm added a new comment to an issue you are following: `` After considering it and talking with coworkers about why this flag was not included before, I think it doesn't make any sense, mainly because Koji builds in a sanitized build root, so nothing to leak. The same thing goes for reproducible builds.
Although it's a nice flag to have in a build, Go users are not affected by Go macros in their day to day.
But, perhaps I'm missing something here.
@harrymicha , @rishi what do you think? ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/25
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
The status of the issue: `Consider using -trimpath` of project: `go-rpm-macros` has been updated to: Closed by alexsaezm.
alexsaezm added a new comment to an issue you are following: `` In that case, I think we can drop this issue and my PR. ``
To reply, visit the link below or just reply to this email https://pagure.io/go-rpm-macros/issue/25
golang@lists.fedoraproject.org