GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — toolchains/go: generate checked-in Dagger runtimes by shykes · Pull Request #13035 · dagger/dagger

Conversation

@shykes

@shykes shykes commented Apr 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR fixes #11467 by making Go runtime generation an explicit toolchains/go step instead of a hidden lint/tidy side effect, and checks in the generated runtime files those checks now require.

Before After
dagger check go:lint re-generates all Go dagger modules Yes No
dagger check go:check-tidy re-generates all Go dagger modules Yes No
dagger generate re-generates all Go dagger modules No Yes
All Go dagger modules generated files are checked in No Yes
Module responsible for re-generating all Go dagger modules toolchains/go toolchains/go

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@shykes
shykes requested review from a team as code owners April 27, 2026 02:26
@shykes
shykes requested review from a team, kpenfound and sipsma April 27, 2026 02:42
eunomie
eunomie approved these changes Apr 27, 2026
View reviewed changes

@eunomie eunomie left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just so much better 🚀
The only downside I have is none of those files are used outside of lint/tidy. They will not be used by the SDK runtime.
But that's why #13028 that goes beyond by using them at runtime, and doing some more changes.

So I think we can merge this one now, and hopefully the full story on Go runtime later this week.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@eunomie

eunomie commented Apr 27, 2026

Copy link
Copy Markdown
Member

btw I'm looking at the test failure. I have the exact same one on the runtime PR, so I suspect something's wrong in the codegen

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eunomie

eunomie commented Apr 27, 2026

Copy link
Copy Markdown
Member

The fix for the test is here: #13039
Also it needs to be re-generated, but it should be on top of this fix.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shykes

shykes commented Apr 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

The fix for the test is here: #13039 Also it needs to be re-generated, but it should be on top of this fix.

@eunomie sorry I didn't understand this. Which one should I merge first? What do I need to do before merging this PR?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shykes
shykes force-pushed the fix-11467 branch from b57cce0 to de80b3d Compare April 27, 2026 18:36
@eunomie

eunomie commented Apr 27, 2026

Copy link
Copy Markdown
Member

The fix for the test is here: #13039 Also it needs to be re-generated, but it should be on top of this fix.

@eunomie sorry I didn't understand this. Which one should I merge first? What do I need to do before merging this PR?

Sorry if this wasn't clear :-/
The issue on CI was because of a regression in the Theseus branch we merged. I fixed it in a dedicated PR as it was impacting this one but also an other PR I opened.

But I saw you merged it, so it should be good (at least for this particular issue)

shykes reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@shykes
shykes force-pushed the fix-11467 branch 5 times, most recently from edafd7e to c5c6e37 Compare April 27, 2026 21:27
shykes added 8 commits April 27, 2026 16:28
@shykes
chore: disable automatic gitignore generation for in-scope Go modules
7d4946b
This checkpoints the first implementation step for issue 11467: the repo-scope Go modules that currently participate in dag-driven lint/tidy flows now opt out of automatic .gitignore regeneration via dagger.json.

The change is intentionally mechanical and scoped to config only. It touches the 73 in-scope module roots defined by the top-level go toolchain customization, plus the root dagger.json, and leaves the .gitignore cleanup for the follow-up step.

Also include the expanded plan note under scratch/ so the exact target set remains documented alongside the code change.

Signed-off-by: Solomon Hykes <[email protected]>
@shykes
chore: regenerate committed Go modules after disabling automatic giti…
29c2a4b
…gnore generation

Issue 11467 is about committing generated Dagger Go files so repo modules build and lint cleanly from a fresh checkout without relying on runtime regeneration.

This commit records the regeneration pass after setting codegen.automaticGitignore=false on the in-scope module roots and removing the generated Go ignore entries from the source-root .gitignore files.

The regeneration was performed with dagger develop, including recursive local-dependency walks where applicable, so the resulting tree now contains the committed generated bindings, updated module metadata, and the cleaned ignore files.

Signed-off-by: Solomon Hykes <[email protected]>
@shykes
toolchains/go: no more codegen when linting. We assume generated file…
0fe530b
…s are checked in

Signed-off-by: Solomon Hykes <[email protected]>
@shykes
chore: restore committed viztest go bindings and stop regenerating ig…
c06bd86
…nored Go outputs

Issue 11467 needs the generated Go module outputs checked in, but several in-scope module .gitignore files were still hiding generated internal packages from the workspace view. That made golangci-lint fail to resolve imports like dagger/viztest/internal/dagger and python-sdk/internal/dagger even after the generated files were present in the tree.

This change removes the stale generated-code ignore rules from the in-scope module roots, restores the dagql/idtui/viztest generated bindings, and records the small viztest go.mod/go.sum refresh produced by the regeneration pass. It does not touch the separate toolchains/go lint split or any broader codegen behavior.

Signed-off-by: Solomon Hykes <[email protected]>
@shykes
toolchains/go: no more codegen when checking go-tidy. We assume gener…
4d43bd6
…ated files are checked in

Signed-off-by: Solomon Hykes <[email protected]>
@shykes
toolchains/go: add Dagger runtime generator
fa92b4a
Expose generate-dagger-runtimes using the existing Go module enumeration and per-module runtime generation plumbing. Propagate runtime detection errors instead of dropping them.

Signed-off-by: Solomon Hykes <[email protected]>
@shykes
toolchains/go: remove unused ctx
bcda7a3
Signed-off-by: Solomon Hykes <[email protected]>
@shykes
toolchains/go: check in generated runtime bindings
7a2ae19
Disabling lint and tidy from generating runtime bindings means those checks now assume every in-scope Go module has its generated Dagger runtime package checked in. The latest trace still failed for sdk/python/runtime and toolchains/engine-dev/notify because their generated internal/dagger packages were missing, so golangci-lint could not typecheck their dagger.gen.go imports.

Regenerate the affected modules with dagger develop so sdk/python/runtime/internal/dagger/dagger.gen.go and toolchains/engine-dev/notify/internal/dagger/dagger.gen.go are present in the tree. Keep the regenerated go.mod/go.sum changes from that operation, including the gqlparser v2.5.33 bump, and regenerate toolchains/go/dagger.gen.go so the generated invoke dispatch matches TidyModule after the unused context argument was removed.

Verified with dagger --progress=plain call go lint --include sdk/python/runtime/ --include toolchains/engine-dev/notify/ --include toolchains/go/.

Signed-off-by: Solomon Hykes <[email protected]>
@shykes
shykes force-pushed the fix-11467 branch from 06029dd to 3b73d13 Compare April 27, 2026 23:28
shykes added 2 commits April 27, 2026 17:51
@shykes
chore: regenerate Go runtime bindings after source map fix
e69bd6b
Regenerate checked-in go.gen.go files on top of #13039 to pick up
the new GenerateDaggerRuntimes method and updated line references.

Signed-off-by: Solomon Hykes <[email protected]>
@shykes
chore: regenerate Go module dependencies
c37a419
Run dagger generate to update go.mod/go.sum across all Go modules
after rebasing on latest main with source map fix (#13039).

Signed-off-by: Solomon Hykes <[email protected]>
@shykes
shykes force-pushed the fix-11467 branch from 3b73d13 to c37a419 Compare April 28, 2026 00:51
@shykes
shykes merged commit d010965 into main Apr 28, 2026
2 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@shykes
shykes deleted the fix-11467 branch April 28, 2026 18:18
@shykes

shykes commented Apr 28, 2026

Copy link
Copy Markdown
Contributor Author

Remaining failed checks are flakes. Merging.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

tiborvass pushed a commit that referenced this pull request Apr 30, 2026
@shykes @tiborvass
toolchains/go: generate checked-in Dagger runtimes (#13035)
6a4d6c7
* chore: disable automatic gitignore generation for in-scope Go modules

This checkpoints the first implementation step for issue 11467: the repo-scope Go modules that currently participate in dag-driven lint/tidy flows now opt out of automatic .gitignore regeneration via dagger.json.

The change is intentionally mechanical and scoped to config only. It touches the 73 in-scope module roots defined by the top-level go toolchain customization, plus the root dagger.json, and leaves the .gitignore cleanup for the follow-up step.

Also include the expanded plan note under scratch/ so the exact target set remains documented alongside the code change.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate committed Go modules after disabling automatic gitignore generation

Issue 11467 is about committing generated Dagger Go files so repo modules build and lint cleanly from a fresh checkout without relying on runtime regeneration.

This commit records the regeneration pass after setting codegen.automaticGitignore=false on the in-scope module roots and removing the generated Go ignore entries from the source-root .gitignore files.

The regeneration was performed with dagger develop, including recursive local-dependency walks where applicable, so the resulting tree now contains the committed generated bindings, updated module metadata, and the cleaned ignore files.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: no more codegen when linting. We assume generated files are checked in

Signed-off-by: Solomon Hykes <[email protected]>

* chore: restore committed viztest go bindings and stop regenerating ignored Go outputs

Issue 11467 needs the generated Go module outputs checked in, but several in-scope module .gitignore files were still hiding generated internal packages from the workspace view. That made golangci-lint fail to resolve imports like dagger/viztest/internal/dagger and python-sdk/internal/dagger even after the generated files were present in the tree.

This change removes the stale generated-code ignore rules from the in-scope module roots, restores the dagql/idtui/viztest generated bindings, and records the small viztest go.mod/go.sum refresh produced by the regeneration pass. It does not touch the separate toolchains/go lint split or any broader codegen behavior.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: no more codegen when checking go-tidy. We assume generated files are checked in

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: add Dagger runtime generator

Expose generate-dagger-runtimes using the existing Go module enumeration and per-module runtime generation plumbing. Propagate runtime detection errors instead of dropping them.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: remove unused ctx

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: check in generated runtime bindings

Disabling lint and tidy from generating runtime bindings means those checks now assume every in-scope Go module has its generated Dagger runtime package checked in. The latest trace still failed for sdk/python/runtime and toolchains/engine-dev/notify because their generated internal/dagger packages were missing, so golangci-lint could not typecheck their dagger.gen.go imports.

Regenerate the affected modules with dagger develop so sdk/python/runtime/internal/dagger/dagger.gen.go and toolchains/engine-dev/notify/internal/dagger/dagger.gen.go are present in the tree. Keep the regenerated go.mod/go.sum changes from that operation, including the gqlparser v2.5.33 bump, and regenerate toolchains/go/dagger.gen.go so the generated invoke dispatch matches TidyModule after the unused context argument was removed.

Verified with dagger --progress=plain call go lint --include sdk/python/runtime/ --include toolchains/engine-dev/notify/ --include toolchains/go/.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate Go runtime bindings after source map fix

Regenerate checked-in go.gen.go files on top of #13039 to pick up
the new GenerateDaggerRuntimes method and updated line references.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate Go module dependencies

Run dagger generate to update go.mod/go.sum across all Go modules
after rebasing on latest main with source map fix (#13039).

Signed-off-by: Solomon Hykes <[email protected]>

---------

Signed-off-by: Solomon Hykes <[email protected]>
(cherry picked from commit d010965)
Signed-off-by: Tibor Vass <[email protected]>
tiborvass pushed a commit that referenced this pull request Apr 30, 2026
@shykes @tiborvass
toolchains/go: generate checked-in Dagger runtimes (#13035)
6924e0d
* chore: disable automatic gitignore generation for in-scope Go modules

This checkpoints the first implementation step for issue 11467: the repo-scope Go modules that currently participate in dag-driven lint/tidy flows now opt out of automatic .gitignore regeneration via dagger.json.

The change is intentionally mechanical and scoped to config only. It touches the 73 in-scope module roots defined by the top-level go toolchain customization, plus the root dagger.json, and leaves the .gitignore cleanup for the follow-up step.

Also include the expanded plan note under scratch/ so the exact target set remains documented alongside the code change.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate committed Go modules after disabling automatic gitignore generation

Issue 11467 is about committing generated Dagger Go files so repo modules build and lint cleanly from a fresh checkout without relying on runtime regeneration.

This commit records the regeneration pass after setting codegen.automaticGitignore=false on the in-scope module roots and removing the generated Go ignore entries from the source-root .gitignore files.

The regeneration was performed with dagger develop, including recursive local-dependency walks where applicable, so the resulting tree now contains the committed generated bindings, updated module metadata, and the cleaned ignore files.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: no more codegen when linting. We assume generated files are checked in

Signed-off-by: Solomon Hykes <[email protected]>

* chore: restore committed viztest go bindings and stop regenerating ignored Go outputs

Issue 11467 needs the generated Go module outputs checked in, but several in-scope module .gitignore files were still hiding generated internal packages from the workspace view. That made golangci-lint fail to resolve imports like dagger/viztest/internal/dagger and python-sdk/internal/dagger even after the generated files were present in the tree.

This change removes the stale generated-code ignore rules from the in-scope module roots, restores the dagql/idtui/viztest generated bindings, and records the small viztest go.mod/go.sum refresh produced by the regeneration pass. It does not touch the separate toolchains/go lint split or any broader codegen behavior.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: no more codegen when checking go-tidy. We assume generated files are checked in

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: add Dagger runtime generator

Expose generate-dagger-runtimes using the existing Go module enumeration and per-module runtime generation plumbing. Propagate runtime detection errors instead of dropping them.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: remove unused ctx

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: check in generated runtime bindings

Disabling lint and tidy from generating runtime bindings means those checks now assume every in-scope Go module has its generated Dagger runtime package checked in. The latest trace still failed for sdk/python/runtime and toolchains/engine-dev/notify because their generated internal/dagger packages were missing, so golangci-lint could not typecheck their dagger.gen.go imports.

Regenerate the affected modules with dagger develop so sdk/python/runtime/internal/dagger/dagger.gen.go and toolchains/engine-dev/notify/internal/dagger/dagger.gen.go are present in the tree. Keep the regenerated go.mod/go.sum changes from that operation, including the gqlparser v2.5.33 bump, and regenerate toolchains/go/dagger.gen.go so the generated invoke dispatch matches TidyModule after the unused context argument was removed.

Verified with dagger --progress=plain call go lint --include sdk/python/runtime/ --include toolchains/engine-dev/notify/ --include toolchains/go/.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate Go runtime bindings after source map fix

Regenerate checked-in go.gen.go files on top of #13039 to pick up
the new GenerateDaggerRuntimes method and updated line references.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate Go module dependencies

Run dagger generate to update go.mod/go.sum across all Go modules
after rebasing on latest main with source map fix (#13039).

Signed-off-by: Solomon Hykes <[email protected]>

---------

Signed-off-by: Solomon Hykes <[email protected]>
(cherry picked from commit d010965)
Signed-off-by: Tibor Vass <[email protected]>
tiborvass pushed a commit that referenced this pull request May 2, 2026
@shykes @tiborvass
toolchains/go: generate checked-in Dagger runtimes (#13035)
6c82454
* chore: disable automatic gitignore generation for in-scope Go modules

This checkpoints the first implementation step for issue 11467: the repo-scope Go modules that currently participate in dag-driven lint/tidy flows now opt out of automatic .gitignore regeneration via dagger.json.

The change is intentionally mechanical and scoped to config only. It touches the 73 in-scope module roots defined by the top-level go toolchain customization, plus the root dagger.json, and leaves the .gitignore cleanup for the follow-up step.

Also include the expanded plan note under scratch/ so the exact target set remains documented alongside the code change.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate committed Go modules after disabling automatic gitignore generation

Issue 11467 is about committing generated Dagger Go files so repo modules build and lint cleanly from a fresh checkout without relying on runtime regeneration.

This commit records the regeneration pass after setting codegen.automaticGitignore=false on the in-scope module roots and removing the generated Go ignore entries from the source-root .gitignore files.

The regeneration was performed with dagger develop, including recursive local-dependency walks where applicable, so the resulting tree now contains the committed generated bindings, updated module metadata, and the cleaned ignore files.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: no more codegen when linting. We assume generated files are checked in

Signed-off-by: Solomon Hykes <[email protected]>

* chore: restore committed viztest go bindings and stop regenerating ignored Go outputs

Issue 11467 needs the generated Go module outputs checked in, but several in-scope module .gitignore files were still hiding generated internal packages from the workspace view. That made golangci-lint fail to resolve imports like dagger/viztest/internal/dagger and python-sdk/internal/dagger even after the generated files were present in the tree.

This change removes the stale generated-code ignore rules from the in-scope module roots, restores the dagql/idtui/viztest generated bindings, and records the small viztest go.mod/go.sum refresh produced by the regeneration pass. It does not touch the separate toolchains/go lint split or any broader codegen behavior.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: no more codegen when checking go-tidy. We assume generated files are checked in

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: add Dagger runtime generator

Expose generate-dagger-runtimes using the existing Go module enumeration and per-module runtime generation plumbing. Propagate runtime detection errors instead of dropping them.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: remove unused ctx

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: check in generated runtime bindings

Disabling lint and tidy from generating runtime bindings means those checks now assume every in-scope Go module has its generated Dagger runtime package checked in. The latest trace still failed for sdk/python/runtime and toolchains/engine-dev/notify because their generated internal/dagger packages were missing, so golangci-lint could not typecheck their dagger.gen.go imports.

Regenerate the affected modules with dagger develop so sdk/python/runtime/internal/dagger/dagger.gen.go and toolchains/engine-dev/notify/internal/dagger/dagger.gen.go are present in the tree. Keep the regenerated go.mod/go.sum changes from that operation, including the gqlparser v2.5.33 bump, and regenerate toolchains/go/dagger.gen.go so the generated invoke dispatch matches TidyModule after the unused context argument was removed.

Verified with dagger --progress=plain call go lint --include sdk/python/runtime/ --include toolchains/engine-dev/notify/ --include toolchains/go/.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate Go runtime bindings after source map fix

Regenerate checked-in go.gen.go files on top of #13039 to pick up
the new GenerateDaggerRuntimes method and updated line references.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate Go module dependencies

Run dagger generate to update go.mod/go.sum across all Go modules
after rebasing on latest main with source map fix (#13039).

Signed-off-by: Solomon Hykes <[email protected]>

---------

Signed-off-by: Solomon Hykes <[email protected]>
(cherry picked from commit d010965)
Signed-off-by: Tibor Vass <[email protected]>
tiborvass pushed a commit that referenced this pull request May 4, 2026
@shykes @tiborvass
toolchains/go: generate checked-in Dagger runtimes (#13035)
45bf2d4
* chore: disable automatic gitignore generation for in-scope Go modules

This checkpoints the first implementation step for issue 11467: the repo-scope Go modules that currently participate in dag-driven lint/tidy flows now opt out of automatic .gitignore regeneration via dagger.json.

The change is intentionally mechanical and scoped to config only. It touches the 73 in-scope module roots defined by the top-level go toolchain customization, plus the root dagger.json, and leaves the .gitignore cleanup for the follow-up step.

Also include the expanded plan note under scratch/ so the exact target set remains documented alongside the code change.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate committed Go modules after disabling automatic gitignore generation

Issue 11467 is about committing generated Dagger Go files so repo modules build and lint cleanly from a fresh checkout without relying on runtime regeneration.

This commit records the regeneration pass after setting codegen.automaticGitignore=false on the in-scope module roots and removing the generated Go ignore entries from the source-root .gitignore files.

The regeneration was performed with dagger develop, including recursive local-dependency walks where applicable, so the resulting tree now contains the committed generated bindings, updated module metadata, and the cleaned ignore files.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: no more codegen when linting. We assume generated files are checked in

Signed-off-by: Solomon Hykes <[email protected]>

* chore: restore committed viztest go bindings and stop regenerating ignored Go outputs

Issue 11467 needs the generated Go module outputs checked in, but several in-scope module .gitignore files were still hiding generated internal packages from the workspace view. That made golangci-lint fail to resolve imports like dagger/viztest/internal/dagger and python-sdk/internal/dagger even after the generated files were present in the tree.

This change removes the stale generated-code ignore rules from the in-scope module roots, restores the dagql/idtui/viztest generated bindings, and records the small viztest go.mod/go.sum refresh produced by the regeneration pass. It does not touch the separate toolchains/go lint split or any broader codegen behavior.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: no more codegen when checking go-tidy. We assume generated files are checked in

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: add Dagger runtime generator

Expose generate-dagger-runtimes using the existing Go module enumeration and per-module runtime generation plumbing. Propagate runtime detection errors instead of dropping them.

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: remove unused ctx

Signed-off-by: Solomon Hykes <[email protected]>

* toolchains/go: check in generated runtime bindings

Disabling lint and tidy from generating runtime bindings means those checks now assume every in-scope Go module has its generated Dagger runtime package checked in. The latest trace still failed for sdk/python/runtime and toolchains/engine-dev/notify because their generated internal/dagger packages were missing, so golangci-lint could not typecheck their dagger.gen.go imports.

Regenerate the affected modules with dagger develop so sdk/python/runtime/internal/dagger/dagger.gen.go and toolchains/engine-dev/notify/internal/dagger/dagger.gen.go are present in the tree. Keep the regenerated go.mod/go.sum changes from that operation, including the gqlparser v2.5.33 bump, and regenerate toolchains/go/dagger.gen.go so the generated invoke dispatch matches TidyModule after the unused context argument was removed.

Verified with dagger --progress=plain call go lint --include sdk/python/runtime/ --include toolchains/engine-dev/notify/ --include toolchains/go/.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate Go runtime bindings after source map fix

Regenerate checked-in go.gen.go files on top of #13039 to pick up
the new GenerateDaggerRuntimes method and updated line references.

Signed-off-by: Solomon Hykes <[email protected]>

* chore: regenerate Go module dependencies

Run dagger generate to update go.mod/go.sum across all Go modules
after rebasing on latest main with source map fix (#13039).

Signed-off-by: Solomon Hykes <[email protected]>

---------

Signed-off-by: Solomon Hykes <[email protected]>
(cherry picked from commit d010965)
Signed-off-by: Tibor Vass <[email protected]>
@tiborvass tiborvass mentioned this pull request May 4, 2026
chore: prep for v0.20.7 #13069
Merged
dagger-codex Bot pushed a commit that referenced this pull request Jun 5, 2026
@shykes
Merge main (62b1c26) into 1.0-beta
5f6f7f0
Conflict resolution details with original conflict hunks and resolved hunks.

1. Deleted module mega-test vs main never-cache regression

Related PRs: beta #11812, main #13298.

Original conflict: 1.0-beta deleted the old module mega-test after splitting module coverage, while main added the never-cache object-return regression to the deleted file.

```diff
diff --git a/core/integration/module_test.go b/core/integration/module_test.go
@@ -7531,6 +7531,24 @@ func (m *Test) ObjsWithNothing() ([]*Test, error) {
+
+func (ModuleSuite) TestNeverCacheModuleObjectReturn(ctx context.Context, t *testctx.T) {
+    c := connect(ctx, t)
+    modGen := modInit(t, c, "go", `package main
+
+type Test struct{}
+
+// +cache="never"
+func (m *Test) Touch() *Test {
+    return m
+}
+`)
+    out, err := modGen.With(daggerCall("touch")).Stdout(ctx)
+    require.NoError(t, err)
+    require.Contains(t, out, "Test@")
+}
```

Resolution: keep beta's deleted mega-test because the regression is already ported to beta's split runtime behavior test and runtime cache-control fixture from the previous merge.

```diff
diff --git a/core/integration/module_runtime_behavior_test.go b/core/integration/module_runtime_behavior_test.go
@@
 func (ModuleSuite) TestNeverCacheModuleObjectReturn(ctx context.Context, t *testctx.T) {
     c := connect(ctx, t)
     modGen := moduleFixture(t, c, "go/runtime-cache-control")
     out, err := modGen.With(daggerCall("touch")).Stdout(ctx)
     require.NoError(t, err)
     require.Contains(t, out, "Test@")
 }
diff --git a/core/integration/testdata/modules/go/runtime-cache-control/main.go b/core/integration/testdata/modules/go/runtime-cache-control/main.go
@@
 // +cache="never"
 func (m *Test) Touch() *Test {
     return m
 }
```

2. Shell helper command path

Related PRs: beta #11812, main #13239.

Original conflict: main's helper calls `dagger shell`, while beta's helper supports root-shell module paths through `daggerShellAt`.

```diff
diff --cc core/integration/shell_test.go
@@
 func daggerShellAt(modPath, script string) dagger.WithContainerFunc {
     return func(c *dagger.Container) *dagger.Container {
++<<<<<<< HEAD:core/integration/shell_test.go
+        execArgs := []string{"dagger", "shell"}
+        if modPath != "" {
+            execArgs = append(execArgs, "-m", modPath)
+        }
+        return c.WithExec(execArgs, dagger.ContainerWithExecOpts{
++=======
+        return c.WithExec([]string{"dagger", "shell"}, dagger.ContainerWithExecOpts{
++>>>>>>> origin/main:core/integration/module_shell_test.go
```

Resolution: combine both concerns: always invoke `dagger shell`, and append beta's `-m <path>` only when the helper receives a module path. `daggerShellNoMod` already remains `dagger shell -M`.

```diff
diff --git a/core/integration/shell_test.go b/core/integration/shell_test.go
@@
 func daggerShellAt(modPath, script string) dagger.WithContainerFunc {
     return func(c *dagger.Container) *dagger.Container {
         execArgs := []string{"dagger", "shell"}
         if modPath != "" {
             execArgs = append(execArgs, "-m", modPath)
         }
         return c.WithExec(execArgs, dagger.ContainerWithExecOpts{
```

3. Release dry-run workspace loading

Related PRs: beta #13327, main #13285.

Original conflict: beta fixed the cache-persistence release dry-run to load the synthetic repo as a workspace; main still loaded it as an extra module. The synthetic repo root uses workspace-only toolchains, so `-m` fails with the workspace migration error.

```diff
diff --cc core/integration/engine_persistence_test.go
@@
 script := `set +e
++<<<<<<< HEAD
+/bin/dagger --progress=plain -W "$MODULE_REF" call release publish --tag "$RELEASE_TAG" --commit "$RELEASE_COMMIT" --dry-run=true markdown > /tmp/publish.log 2>&1
++=======
+/bin/dagger --progress=plain -m "$MODULE_REF" call release publish --tag "$RELEASE_TAG" --commit "$RELEASE_COMMIT" --dry-run=true markdown > /tmp/publish.log 2>&1
++>>>>>>> origin/main
```

Resolution: keep beta's `-W "$MODULE_REF"` workspace load, preserving the previous CI fix and the dry-run assertions.

```diff
diff --git a/core/integration/engine_persistence_test.go b/core/integration/engine_persistence_test.go
@@
 /bin/dagger --progress=plain -W "$MODULE_REF" call release publish --tag "$RELEASE_TAG" --commit "$RELEASE_COMMIT" --dry-run=true markdown > /tmp/publish.log 2>&1
```

4. Module workspace config fields

Related PRs: beta #13300, main #13329.

Original conflict: main added legacy argument customizations to `Module`, while beta renamed and documented workspace settings from `dagger.toml`.

```diff
diff --cc core/module.go
@@
++<<<<<<< HEAD
+    // Workspace setting values from dagger.toml [modules.<name>.settings].
++=======
+    // LegacyArgCustomizations are workspace dagger.json argument customizations
+    // applied through asModule.
+    LegacyArgCustomizations []*modules.ModuleConfigArgument
+
+    // Config values from workspace config.toml [modules.<name>.config].
++>>>>>>> origin/main
     // Typed map: strings, bools, ints, floats as-is from TOML.
     // When set, constructor args are resolved from this map first.
     WorkspaceConfig map[string]any
```

Resolution: keep both fields: main's `LegacyArgCustomizations` is still used by merged `modulesource.go`, and beta's `WorkspaceConfig` comment reflects the current 1.0-beta `dagger.toml` settings model.

```diff
diff --git a/core/module.go b/core/module.go
@@
     // LegacyArgCustomizations are workspace dagger.json argument customizations
     // applied through asModule.
     LegacyArgCustomizations []*modules.ModuleConfigArgument

     // Workspace setting values from dagger.toml [modules.<name>.settings].
     // Typed map: strings, bools, ints, floats as-is from TOML.
     // When set, constructor args are resolved from this map first.
     WorkspaceConfig map[string]any
```

5. Dang API rename vs beta closure fix

Related PRs: beta #13296, main #13318.

Original conflict: main upgraded Dang and renamed class APIs to object APIs; beta used the constructor closure to preserve imports in rehydrated method calls.

```diff
diff --cc core/sdk/dang_helpers.go
@@
 parentConstructor := parentModBase.(*dang.ConstructorFunction)
++<<<<<<< HEAD
+parentModType := parentConstructor.ClassType
+// Use the class file's captured env so rehydrated method calls keep the
+// imports that were in scope when the type was declared.
+parentClosure := parentConstructor.Closure
++=======
+parentModType := parentConstructor.ObjectType
++>>>>>>> origin/main
@@
++<<<<<<< HEAD
+bodyEnv := dang.CreateCompositeEnv(parentModEnv, parentClosure)
++=======
+bodyEnv := dang.CreateOverlayValueScope(parentModEnv, env)
++>>>>>>> origin/main
```

Resolution: take main's newer Dang API names and dependency, but keep beta's captured `Closure` for conversion and body evaluation. The newer `ConstructorFunction` still exposes `Closure`, so this preserves both the API upgrade and the import-scope fix.

```diff
diff --git a/core/sdk/dang_helpers.go b/core/sdk/dang_helpers.go
@@
 parentConstructor := parentModBase.(*dang.ConstructorFunction)
 parentModType := parentConstructor.ObjectType
 // Use the class file's captured env so rehydrated method calls keep the
 // imports that were in scope when the type was declared.
 parentClosure := parentConstructor.Closure
@@
 parentModEnv := dang.NewObject(parentModType)
@@
 bodyEnv := dang.CreateOverlayValueScope(parentModEnv, parentClosure)
 bodyEnv.EnterSelf(parentModEnv)
 _, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ObjectBodyForms, bodyEnv)
```

6. Dang dependency version

Related PRs: beta #13306, main #13318.

Original conflict: beta had the older Dang pseudo-version; main had the newer version required by the merged object API names.

```diff
diff --cc go.mod
@@
++<<<<<<< HEAD
+    github.com/vito/dang v0.0.0-20260602175442-56ec0c007a23
++=======
+    github.com/vito/dang v0.0.0-20260603200027-0175bae9eb8f
++>>>>>>> origin/main
```

Resolution: take main's newer Dang dependency and matching go.sum entries because the source resolution uses the newer object API.

```diff
diff --git a/go.mod b/go.mod
@@
     github.com/vito/dang v0.0.0-20260603200027-0175bae9eb8f
```

7. Generated ConfigSchema comments

Related PRs: beta #13300, main #13035.

Original conflict: beta's generated clients document the expanded workspace config filenames; main's generated clients kept the old file list. Both sides already agreed on the shifted source line.

```diff
diff --cc modules/dev/internal/dagger/engine-dev.gen.go
@@
 // Generate the json schema for a dagger config file
++<<<<<<< HEAD
+// Currently supported: "dagger.json", "dagger-module.toml", "dagger.toml", "engine.json"
++=======
+// Currently supported: "dagger.json", "engine.json"
++>>>>>>> origin/main
 func (r *EngineDev) ConfigSchema(filename string) *File { // engine-dev (../../../../toolchains/engine-dev/main.go:362:1)
```

Resolution: keep beta's expanded filename list in every generated engine-dev/dagger-engine client because `toolchains/engine-dev/main.go` supports the workspace config files.

```diff
diff --git a/modules/dev/internal/dagger/engine-dev.gen.go b/modules/dev/internal/dagger/engine-dev.gen.go
@@
 // Generate the json schema for a dagger config file
 // Currently supported: "dagger.json", "dagger-module.toml", "dagger.toml", "engine.json"
 func (r *EngineDev) ConfigSchema(filename string) *File { // engine-dev (../../../../toolchains/engine-dev/main.go:362:1)
```

8. Current docs restructure vs main docs updates

Related PRs: beta #11812, main #13320 and #13223.

Original conflict: beta's current docs have been restructured and versioned for 1.0-beta, while main still modified or imported content from the older current-docs layout. The modify/delete conflicts were all old current-docs pages such as cookbook pages, old module pages, old quickstarts, old type pages, and old best-practice pages.

```diff
diff --git a/docs/current_docs/cookbook/containers.mdx b/docs/current_docs/cookbook/containers.mdx
deleted in HEAD, modified in origin/main
```

Resolution: keep beta's current-docs restructure and deletions. Non-conflicting main additions such as versioned docs and static reference assets stay in the merge, but old pre-restructure `current_docs` pages are not reintroduced.

```diff
diff --git a/docs/current_docs/cookbook/containers.mdx b/docs/current_docs/cookbook/containers.mdx
deleted file mode 100644
```

9. Existing 1.0-beta docs pages vs main old imports/links

Related PRs: beta #13338, main #13320 and #13223.

Original conflict: for pages that still exist on both sides, main tried to import old cookbook partials or link to old `dagger.json`/core-concepts pages, while beta uses current 1.0-beta aliases and workspace-era wording.

```diff
diff --cc docs/current_docs/extending/types/container.mdx
@@
++<<<<<<< HEAD:docs/current_docs/extending/types/container.mdx
+import ContainerType from "@daggerTypes/_container.mdx";
++=======
+import ContainerType from "../../partials/types/_container.mdx";
+import BuildImageFromDockerfile from '../../partials/cookbook/builds/_image-from-dockerfile.mdx';
++>>>>>>> origin/main:docs/current_docs/getting-started/types/container.mdx
```

Resolution: keep beta's existing 1.0-beta docs files for those content conflicts, including `@daggerTypes` aliases, workspace/checks links, and `dagger-module.toml` wording.

```diff
diff --git a/docs/current_docs/extending/types/container.mdx b/docs/current_docs/extending/types/container.mdx
@@
 import ContainerType from "@daggerTypes/_container.mdx";
```

Signed-off-by: Solomon Hykes <[email protected]>
@dagger-codex dagger-codex Bot mentioned this pull request Jun 5, 2026
Merge main (efbe16d72) into 1.0-beta #13340
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@eunomie eunomie eunomie approved these changes
@kpenfound kpenfound Awaiting requested review from kpenfound kpenfound was automatically assigned from dagger/maintainers
@sipsma sipsma Awaiting requested review from sipsma sipsma was automatically assigned from dagger/maintainers

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Commit generated dagger files in our repo

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@shykes @eunomie
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.