Skip to content

Add wrap extension tag to implement go_wrap_sdk #4301

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

Merged
merged 3 commits into from
Mar 25, 2025

Conversation

patrickmscott
Copy link
Contributor

Add all wrapped sdks to the beginning of the toolchains so any specific platforms override the downloaded toolchain.

Add a test that transitions to a different sdk from the downloaded version. The test asserts the correct version.

What type of PR is this?

Uncomment one line below and remove others.

Bug fix
Feature
Documentation
Other

What does this PR do? Why is it needed?

Which issues(s) does this PR fix?

Fixes #4300

Other notes for review

Copy link
Member

@fmeum fmeum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

I would have expected https://github.com/bazel-contrib/bazel-gazelle/blob/186298911d38850b47b198e8d933a93125ce7043/docs/BUILD.bazel#L17 to fail though. Could you check what happens if you run //docs:update?

@patrickmscott
Copy link
Contributor Author

Looks good, thanks!

I would have expected https://github.com/bazel-contrib/bazel-gazelle/blob/186298911d38850b47b198e8d933a93125ce7043/docs/BUILD.bazel#L17 to fail though. Could you check what happens if you run //docs:update?

That is gazelle. Looks like rules_go also has //docs:update but it was fine.

Add all wrapped sdks to the beginning of the toolchains so any specific
platforms override the downloaded toolchain.

Add a test that transitions to a different sdk from the downloaded
version. The test asserts the correct version.
@fmeum fmeum force-pushed the patrick/wrap-extension branch from e2c45eb to 67627b7 Compare March 25, 2025 19:34
@fmeum fmeum enabled auto-merge (squash) March 25, 2025 19:34
@fmeum fmeum merged commit 235b766 into bazel-contrib:master Mar 25, 2025
1 check passed
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.

Add go_wrap_sdk to bzlmod extension
2 participants