Repository navigation
fix(deps): hold golang.org/x/tools at v0.52.0 - #364
Merged
Merged
Conversation
Generated-by: LLM harness=codex;model=openai:gpt-6.2-sol Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:d4ae5c1dc250d1ed;surface=exec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
#349 raised
golang.org/x/toolsto v0.53.0. A consumer that took the new rules pin then failed to compile its Go analyzer driver, withnot enough arguments in call to facts.NewDecoder. Every consumer inherits this version from the module graph ingo/MODULE.bazel.Behavior change
go/go.modandgo/go.sumreturn togolang.org/x/toolsv0.52.0 and the indirect versions that came with it.golang.org/x/toolsto versions below 0.53.0. A comment on the rule says when to lift it.Decisions
rules_gois 0.65.0, the latest release, so no newer release supports the API change.rules_gosupports it.Risk
The cause comes from the compiler error and the dependency timeline. No target in this repository compiles the analyzer driver, so the failure didn't reproduce here. The consumer's build is the real check. A follow-up adds a rules build that covers it.
Verification
@rules_go//:tools_nogotarget built against v0.52.0 from the Go workspace.Opened-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:debb814921f029ad;surface=cli
Generated-by: LLM harness=codex;model=openai:gpt-6.2-sol
Generated-by: LLM effort=high;harness=codex:0.171.0;model=openai:gpt-6.2-sol;session=sha-256-64:d4ae5c1dc250d1ed;surface=exec
Assisted-by: LLM effort=medium;harness=claude-code:2.1.330;model=anthropic:claude-sonnet-5-5;session=sha-256-64:debb814921f029ad;surface=cli