Repository navigation
go: read discovery JSON with File.asJson - #108
Merged
Merged
Conversation
Engine v1.0.0-beta.26 renamed File.asJSON to asJson. The old name is served only to views before beta.26, so a run that typechecks the go module in a newer view fails with: field "asJSON" not found in Dagger.File Spell it asJson and move the module's engineVersion to beta.26, where that spelling exists. gomod, which go depends on, already requires beta.26, so this does not raise the minimum engine. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Each module's dagger-module.toml already records it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
sipsma
approved these changes
Nov 22, 2026
eunomie
pushed a commit
to eunomie/go-sdk
that referenced
this pull request
Nov 25, 2026
Move daggerGo from dagger/go 79a92be to its release v0.5.0 (262b66d), the merge of dagger/go#110. Its gobuild is on otel-go and OpenTelemetry v1.47.0, out of the range of GHSA-q7gw-24fr-5p69, where 79a92be's required otel/sdk v1.43.0 and otel/trace v1.46.0, and pinned otel/sdk/log to v0.16.0. The engine image ships that gobuild for the built-in Go SDK, which moves to the same commit, since the image's build requires the two to match. v0.5.0 also quotes linker string values (dagger/go#107) and reads discovery JSON with File.asJson (dagger/go#108), which needs v1.0.0-beta.26, go-sdk's daggerGoFloor. The calls generated entrypoints make are unchanged. 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.
Engine v1.0.0-beta.26 renamed
File.asJSONtoasJson. The old name is served only to views before beta.26. A test-split rerun type-checked thegomodule in a newer view and failed:Changes
go.dang: change the threeasJSONcalls toasJson(discoveryIndex, the custom-base toolchain probe,moduleDiscovery).dagger-module.toml: move the root module'sengineVersionfrom beta.22 to beta.26, whereasJsonexists.gomod, whichgodepends on, already requires beta.26, so the minimum engine stays the same.asJSONwas the only name renamed in beta.26 thatgo.dangused.AGENTS.md: remove the minimum engine version line. Each module'sdagger-module.tomlalready records it.The pinned beta.22 view should have kept
asJSON, so the engine or Dang SDK may not apply a Dang module'sengineVersionview in some path. That needs its own fix upstream.Testing
Ran these checks with a v1.0.0-beta.28 CLI. All passed:
I didn't run the full suite.
🤖 Generated with Claude Code