Repository navigation
core: serve the v1.0.0-beta.25 view as beta.25 did - #15134
Conversation
d1dbb30 to
83895c3
Compare
The engine image entries need go-sdk's daggerGo and the built-in Go SDK to name the same dagger/go commit. Signed-off-by: Yves Brissaud <[email protected]>
gomod calls Directory.withPlatform, which the v1.0.0-beta.25 view no longer serves, so it has to declare v1.0.0-beta.26 or later. Signed-off-by: Yves Brissaud <[email protected]>
v1.0.0-beta.27 must give callers that declare v1.0.0-beta.25 the API the v1.0.0-beta.25 engine served. Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
83895c3 to
3bca2db
Compare
dagger/go b0476af has both the per-platform builds that entrypoints of modules targeting v1.0.0-beta.26 rely on (a prebuild that takes a platform) and dagger/go's main, including its fix for the Gomod/GoMod field collision. Dagger's built-in Go SDK moves to the same commit in dagger/dagger#15134; the engine image's build requires the two to match. Only a module that targets v1.0.0-beta.26 or later builds with dagger/go, so modules on the default target are unchanged. Signed-off-by: Erik Sipsma <[email protected]>
The engine image's entries call each Go module's prebuild with the platform it builds for, which dagger/go's gobuild takes since its per-platform build merged (dagger/go#100). The built-in Go SDK pinned a dagger/go main from before that merge, whose prebuild takes no platform, so the entries failed. It now pins dagger/go's main with that merge and with gomod's beta.26 type names kept distinct (dagger/go#102), and go-sdk moves to the commit that names the same dagger/go (dagger/go-sdk#103), as the entries require. The workspace's own dagger/go module stays where it was: the checks' engine loads it, and that engine is older than the per-platform build needs. Signed-off-by: Erik Sipsma <[email protected]>
|
eunomie: I pushed one commit on top of yours, c3d3f6f, which moves two pins and nothing else. Your pin pointed the built-in Go SDK at a dagger/go main that didn't have the per-platform build yet. Its gobuild So the commit moves:
|
Codegen wrote the Go release it was compiled with into the go line of
every go.mod it creates. The engine build compiles codegen with Wolfi's
go-1.27 package, which follows Go's patch releases, while the Go SDK
builds modules with a pinned golang image and GOTOOLCHAIN=local. When Go
1.27.4 came out, codegen built with it wrote "go 1.27.4", and the 1.27.3
toolchain that builds the module refused it:
go: go.mod requires go >= 1.27.4 (running go 1.27.3; GOTOOLCHAIN=local)
Write the language version at patch 0 instead ("go 1.27.0"), which any
1.27 toolchain builds. Existing go.mod files are untouched, and one that
asks for a newer Go than codegen's is still refused.
Signed-off-by: Erik Sipsma <[email protected]>
|
Pushed 60d1e11 on top to fix the Cause: when a Go module has no go.mod, codegen creates one and writes the Go version codegen itself was compiled with as its Fix: codegen now writes the language version at patch 0 ( |
Signed-off-by: Yves Brissaud <[email protected]>
Makes the
v1.0.0-beta.25schema view return what the released beta.25 engine returns, so beta.27 can "go back to the beta.25 schema when asked". Later views are unchanged.AfterVersion("v1.0.0-beta.26"), on the narrowest element (arguments over fields over types), includingwithPlatform,resolveBrokenSymlinks, thenamingAPIs and the internal underscore fields.Query.identifier,formatIdentifiersandnamingDictionary, removed by the naming rework, are served again for views before beta.26, with a beta.25 dictionary (withoutK8s/K3s).The first two commits and a later one move the pins so the built-in Go SDK and go-sdk build with dagger/go b0476af (platform-aware gobuild,
gomoddeclaringv1.0.0-beta.26with distinct type names), the commit go-sdk names asdaggerGo. The workspace's own dagger/go module stays on its older pin because the checks' engine loads it. Field and enum-value order of a few types still differs from beta.25 (casing work, left alone).Checks: focused
go test ./core/schematests pass. The three updated integration tests (TestModuleNaming/...) pass on an engine built from this branch (11 passed, before the withPlatform gate and the pin move). CI of the rebased branch is pending. No fulldagger checkwas run.