Skip to content

deps: bump chroma to v2.25.0 and align devcontainer to Go 1.26#764

Open
dlevy-msft-sql wants to merge 2 commits into
microsoft:mainfrom
dlevy-msft-sql:deps/devcontainer-go-1.26
Open

deps: bump chroma to v2.25.0 and align devcontainer to Go 1.26#764
dlevy-msft-sql wants to merge 2 commits into
microsoft:mainfrom
dlevy-msft-sql:deps/devcontainer-go-1.26

Conversation

@dlevy-msft-sql
Copy link
Copy Markdown
Contributor

Problem

PR #762 (dependabot bump of github.com/alecthomas/chroma/v2 from 2.24.1 to 2.25.0) fails the new check-go-version-alignment job:

go.mod requires:        go 1.26 (major.minor: 1.26)
Dockerfile base image:  go:1.25
ERROR: Version mismatch!

Root Cause

chroma v2.25.0's own go.mod requires Go 1.26, which causes go mod tidy to raise our go directive from 1.25.10 to 1.26. The alignment workflow then catches that .devcontainer/Dockerfile is still pinned to mcr.microsoft.com/devcontainers/go:1.25-bookworm. Dependabot bumps deps but does not edit the Dockerfile, so the check stays red.

Solution

Update .devcontainer/Dockerfile to go:1.26-bookworm alongside the chroma bump in a single PR, so both go.mod and the devcontainer move together and the alignment check passes.

The pinned Go tool versions in the Dockerfile (gopls@v0.21.1, dlv@v1.26.1, staticcheck@v0.7.0, gotext@v0.35.0) are already compatible with Go 1.26, so no further changes are needed there.

Changes

File Change
go.mod go 1.25.10 -> go 1.26; chroma/v2 2.24.1 -> 2.25.0; dlclark/regexp2 v1.12.0 -> dlclark/regexp2/v2 v2.1.0 (indirect)
go.sum regenerated
.devcontainer/Dockerfile base image go:1.25-bookworm -> go:1.26-bookworm

Testing

  • go build ./... passes locally with Go 1.26.0.
  • CI's check-go-version-alignment job should now pass (both sides report 1.26).

Related

chroma v2.25.0 raises the go directive in go.mod from 1.25.10 to 1.26 (and switches the indirect github.com/dlclark/regexp2 to v2). The check-go-version-alignment workflow then fails because .devcontainer/Dockerfile still pins go:1.25-bookworm.

Bump the devcontainer base image to go:1.26-bookworm so the alignment check passes. Pinned Go tool versions (gopls 0.21.1, delve 1.26.1, staticcheck 0.7.0, gotext 0.35.0) are already compatible with Go 1.26.

Supersedes microsoft#762.
go.mod now requires Go 1.26 (chroma v2.25.0 pulled it up). The lint and pr-validation workflows pin setup-go to 1.25.10 with GOTOOLCHAIN=local, so they fail with 'go.mod requires go >= 1.26'. Bump both to 1.26.0 to match.
@dlevy-msft-sql
Copy link
Copy Markdown
Contributor Author

@shueybubbles

image

@dlevy-msft-sql dlevy-msft-sql marked this pull request as ready for review May 27, 2026 01: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.

1 participant