Skip to content

fix(go): default the unified library to the SDK floor - #84

Closed
eunomie wants to merge 1 commit into
dagger:mainfrom
eunomie:sdk-target/go-default-floor
Closed

eunomie wants to merge 1 commit into
dagger:mainfrom
eunomie:sdk-target/go-default-floor

Conversation

@eunomie

@eunomie eunomie commented Oct 26, 2026

Copy link
Copy Markdown
Member

The generated entrypoint already needs engine beta.18, so beta.18's API is always available to a module. The unified default for dagger.io/dagger was still beta.17, one release below that floor: a freshly generated module lacked readOnly on withMountedFile, which beta.18 serves.

The default now equals the SDK floor. A test reads go-sdk.dang and checks the default against sourcesFloor, so the two cannot drift. clientVersion still overrides the default and is otherwise unchanged.

Checks run: go test ./... in cmd/dagger-go-sdk-codegen (goldens included); the new test fails when the literal is changed; a throwaway generation of a unified module with v1.0.0-beta.18 wrote dagger.io/dagger v1.0.0-beta.18 into go.mod and built.

Checks not run here: the engine-backed e2e suite.

The entrypoint already needs beta.18, so beta.18's API is always available.

Signed-off-by: Yves Brissaud <[email protected]>
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