Repository navigation
Support Go 1.27 - #90
Merged
Merged
Conversation
tiborvass
approved these changes
Nov 2, 2026
The source scanner parses every Go file in full, and Go 1.26's parser
rejects Go 1.27's generic methods ("method must have no type
parameters"). So a module on Go 1.27 that declared one failed in the
scan, before anything built. Built with Go 1.27, the scanner reads that
syntax and every earlier Go's.
The tool builder and the default for modules with no go directive share
the version, so they move to Go 1.27 too. Go 1.27 targets the same
platforms as Go 1.26, so the platform list is unchanged.
Staticcheck for a module on Go 1.27 is now built in the tool builder.
Its newer-than-the-builder path stays, but no released Go is newer to
check it with.
Signed-off-by: Erik Sipsma <[email protected]>
golangci-lint refuses a module on a newer Go than the one it was built with. 2.11.4 was built with Go 1.26, so linting any module on Go 1.27 failed with "the Go language version (go1.26) used to build golangci-lint is lower than the targeted Go version". 2.15.0 is built with Go 1.27, and support for Go 1.27's syntax arrived in 2.13.0. 2.15.0 also changes the exhaustive linter's options; the replaced ones still work, deprecated. Signed-off-by: Erik Sipsma <[email protected]>
sipsma
force-pushed
the
sipsma/go-1.27
branch
2 times, most recently
from
November 2, 2026 19:16
e4c96fe to
4d2d913
Compare
The suite's own fixtures and pinned versions move from Go 1.26.1 to 1.27.3. The checks that compare the module's builds with plain go build, byte for byte or by behavior, now run under each supported Go: test binaries and PGO builds under 1.26 and 1.27, embeds under 1.25, 1.26 and 1.27. The toolchain-switch check keeps its 1.25 base switching to 1.26, and the version check still reads the scanner helper's own go.mod. Signed-off-by: Erik Sipsma <[email protected]>
sipsma
force-pushed
the
sipsma/go-1.27
branch
from
November 2, 2026 19:22
4d2d913 to
ef3fae8
Compare
sipsma
added a commit
to dagger/dagger
that referenced
this pull request
Nov 4, 2026
Move the workspace's Go module from dagger/go#84's merge commit to the v0.4.0 release. That brings in Go 1.27 (dagger/go#90), the faster workspace scan (dagger/go#91) and the module discovery index and test check cuts (dagger/go#89). dagger.lock records the tag and the sub-modules the release resolves, as written by dagger. Signed-off-by: Erik Sipsma <[email protected]>
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.
Modules on Go 1.27 now build, test and lint. Two things failed on them before:
godirective now use Go 1.27. Go 1.27 targets the same platforms as 1.26, so the platform list is unchanged.exhaustivelinter; the old ones still work.Each has a new check,
generic-methods-checkin the root suite and in golangci-lint's, which fails without its fix.The suite now tests on Go 1.27.3. The checks that compare this module's builds with plain
go buildrun under each supported Go:With 1.27 swapped in before any fix, every existing check passed, including the byte-for-byte comparisons, so gobuild already handles Go 1.27's build plans.
Staticcheck's path for a module on a newer Go than the tool builder's stays, but no released Go is newer than 1.27 to check it with.