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

Set rulesGoStdlibPrefix as ldflag of go_tool_binary #422

Merged
merged 1 commit into from
Nov 6, 2023
Merged

Set rulesGoStdlibPrefix as ldflag of go_tool_binary #422

merged 1 commit into from
Nov 6, 2023

Conversation

malt3
Copy link
Collaborator

@malt3 malt3 commented Sep 28, 2023

Adapt toolchain with changes from bazel-contrib/rules_go#3701

Fixes #421

I'm not fully convinced if this is a correct fix. I'm not sure if this sets a working stdlib prefix and I don't know how to test.
This also breaks compatibility with older versions of rules_go (that are missing the rulesGoStdlibPrefix variable in the source code of the builder and the ldflags attribute in the go_tool_binary rule.

@fmeum I know you are probably not involved with rules_nixpkgs, but do you have any guidance for external providers of rules_go go_toolchains?

@benradf benradf merged commit 287a68d into tweag:master Nov 6, 2023
13 checks passed
@malt3 malt3 deleted the fix/go_tool_binary/rulesGoStdlibPrefix branch November 6, 2023 17:28
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

Successfully merging this pull request may close these issues.

rules_go now requires rulesGoStdlibPrefix to be set via -X
2 participants