Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement request: Add global go_binary gc_linkopts capability #1733

Open
udf2457 opened this issue Feb 9, 2024 · 0 comments
Open

Enhancement request: Add global go_binary gc_linkopts capability #1733

udf2457 opened this issue Feb 9, 2024 · 0 comments

Comments

@udf2457
Copy link

udf2457 commented Feb 9, 2024

Maybe I'm missing something, but I can't seem to find an option to define e.g. -s -w -buildmode=pie globally at the root of a project, and preferablt on a per-arch basis.

There's a discussion of the issue in 2021 here: bazelbuild/rules_go#2894

In that discussion there was a suggestion of a hacky workaround of wrapping the original go_binary and patching Gazelle, but that smells like a maintenance nightmare to me. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant