Skip to content

Add wrap extension tag to implement go_wrap_sdk#4301

Merged
fmeum merged 3 commits intobazel-contrib:masterfrom
patrickmscott:patrick/wrap-extension
Mar 25, 2025
Merged

Add wrap extension tag to implement go_wrap_sdk#4301
fmeum merged 3 commits intobazel-contrib:masterfrom
patrickmscott:patrick/wrap-extension

Conversation

@patrickmscott
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@patrickmscott patrickmscott deleted the patrick/wrap-extension branch January 29, 2026 15:47
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