Skip to content

chore: bump golang.org/x/tools to v0.50.0 - #5

Merged
ethanndickson merged 1 commit into
mainfrom
mike/x-tools-go1.27
Oct 20, 2026
Merged

ethanndickson merged 1 commit into
mainfrom
mike/x-tools-go1.27

Conversation

@ibetitsmike

Copy link
Copy Markdown
Contributor

paralleltestctx v0.0.2 depends on golang.org/x/tools v0.36.0, which cannot load packages built with Go 1.27:

paralleltestctx: internal error: package "cmp" without types was imported from "github.com/coder/coder/v2/coderd/util/slice"

This bumps x/tools to v0.50.0 (the version coder/coder uses), which raises the go directive to 1.26.0, and moves CI to Go 1.26.8. CI stays on Go 1.26 because the pinned golangci-lint v2.4.0 cannot read Go 1.27 export data.

Needed by coder/coder's Go 1.27 upgrade, which will pin the next tag once this merges.

Testing: go test ./... and go vet ./... pass with Go 1.26.5 and 1.27.1, and make lint and make fmt are clean with Go 1.26.5. Built with this commit, paralleltestctx loads the coder/coder tree on Go 1.27.1. v0.0.2 fails there with the error above.

Xum opened this PR on behalf of Mike.

x/tools v0.36.0 cannot load packages built with Go 1.27, so
paralleltestctx fails on Go 1.27 modules with errors like:

    internal error: package "cmp" without types was imported from ...

Bump x/tools to v0.50.0, which needs go 1.26.0, and run CI on
Go 1.26.8. The repo's pinned golangci-lint v2.4.0 cannot read Go 1.27
export data, so CI stays on Go 1.26.
@ethanndickson
ethanndickson merged commit 95009df into main Oct 20, 2026
3 checks passed
@ethanndickson
ethanndickson deleted the mike/x-tools-go1.27 branch October 20, 2026 02:05
ethanndickson added a commit to coder/coder that referenced this pull request Oct 20, 2026
…ures (#31039)

#31011 fixed a flake where a closure in `TestProjectSkillQueries` used
the parent test's `testutil.Context` from parallel subtests. Once that
deadline passed, the closure's `require.NoError` called `FailNow` on the
parent `t`, which panics and takes down the whole `coderd/database`
package. `paralleltestctx` only checked direct references to the
context, so it missed this. coder/paralleltestctx#6 now follows calls to
local closures too.

This pins `paralleltestctx` to the current `main` commit, as there's no
tag yet. That commit also brings in the outer variable reassignment
check from coder/paralleltestctx#4 and the `x/tools` bump from
coder/paralleltestctx#5. The closure check flagged the `loadPrompt`
helper in `TestMediaToolResultRoundTrip`, so it now makes its own
context from the subtest's `t`. The `TestGraph` and `TestRuntimeAudit`
fixes for the outer variable check are the same as in #30288, so that PR
only needs to repin.
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.

2 participants