Skip to content

[1.0-beta] 1.0 config split: dagger.toml and dagger-module.toml - #13300

Merged
shykes merged 1 commit into
1.0-betafrom
codex/dagger-toml-module-config-1.0
Jun 4, 2026
Merged

shykes merged 1 commit into
1.0-betafrom
codex/dagger-toml-module-config-1.0

Conversation

@dagger-codex

@dagger-codex dagger-codex Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR splits workspace config from module config for the 1.0 model.

  • Workspace config is now dagger.toml.
  • Workspace lock is now dagger.lock; legacy .dagger/lock is read as fallback and migrated forward.
  • Current module config is now dagger-module.toml.
  • Legacy dagger.json remains supported. Its schema is frozen and still uses sdk.
  • dagger-module.toml uses runtime.
  • Dependency pins stay in dagger-module.toml.
  • The workspace lock no longer has modules.resolve; module loading follows the normal runtime Git/container lookup policy.

Before / after

Before:

.dagger/config.toml     workspace config
.dagger/lock            workspace lock
dagger.json             module config, with sdk

After:

dagger.toml             workspace config
dagger.lock             workspace lock, runtime lookups only, no modules.resolve
dagger-module.toml      current module config, with runtime
dagger.json             legacy module config, with sdk
.dagger/modules/...     default location for project-specific modules

Current module config

dagger-module.toml is TOML, not JSON. It reuses the existing TOML parser/encoder plumbing instead of adding another JSON-shaped current config.

Example:

name = "app"
engineVersion = ""
source = "src"

[runtime]
source = "go"

[[dependencies]]
name = "dep"
source = "github.com/acme/dep@v1"
pin = "sha256:..."

Compatibility

There are two compat paths.

  • Module loading compat: load dagger-module.toml or legacy dagger.json. This does not warn.
  • Workspace compat projection: when no dagger.toml exists, project legacy dagger.json into a synthetic workspace. This is the migration-warning path.

dagger-module.toml is not used to synthesize workspace config.

Migration

  • Workspace-shaped legacy dagger.json migrates to dagger.toml.
  • If that file also described a main module, the module config moves to .dagger/modules/<name>/dagger-module.toml.
  • Plain module-shaped legacy dagger.json migrates in place to dagger-module.toml, but only when it is inside the selected project scope.
  • Migration is scoped to the selected legacy project from cwd/find-up plus that project's .dagger/modules/...; unrelated testdata, examples, and nested projects are left alone.
  • Legacy .dagger/lock migrates to dagger.lock; stale modules.resolve entries are dropped during the move.
  • Migration reports stay at .dagger/migration-report.md because they are one-time review artifacts, not steady-state workspace contract.
  • Paths are rebased because dagger.toml now lives at the workspace root, not under .dagger/.
  • Legacy workspace pins are preserved by migrating the pinned ref directly into the workspace module source.

Dependency pins

Keep dependencies[].pin in dagger-module.toml.

In legacy dagger.json, dependency pins represented published module state: a module could publish a dependency with its locked transitive dependency graph. Moving that into a module-owned lock would require either a new lock format or a scoped subset of the existing lock format. That is extra design and migration risk for little benefit right now.

The workspace lock owns runtime lookup state. Module dependency pins stay with the module that declares them.

Locking model

Remove modules.resolve.

Module loading now follows the same runtime lookup policy as everything else:

  • Git branch lookup floats.
  • Git tag lookup pins.
  • Module loading does not add a second module-specific lock entry.

This is the simplest model and the easiest to amend later if we need a dedicated module resolver.

Merge-readiness

  • Rebased on current origin/1.0-beta; GitHub reports the PR as mergeable/clean.
  • DCO passes on pushed head 5780b93ab.
  • Sub-agent blocker fixes included: root .dagger/modules/.../dagger.json migration and legacy modules.resolve lock filtering.
  • The stale-surface scan is clean except intentional legacy mentions and the negative modules.resolve regression assertion.
  • git diff --check passes.

Validation run locally:

GOMAXPROCS=2 go test -p 1 ./core/workspace ./core/modules ./core/schema ./engine/server ./cmd/dagger ./cmd/json-schema ./cmd/codegen/introspection
GOMAXPROCS=2 go test -p 1 ./core/integration -run '^$'
GOMAXPROCS=2 go test -p 1 ./core/... -run '^$'
(cd toolchains/go && go test ./...)
(cd toolchains/engine-dev && go test ./...)
(cd toolchains/docs-dev && go test ./...)
git diff --check

@dagger-codex
dagger-codex Bot requested review from a team as code owners June 1, 2026 22:09
@dagger-codex
dagger-codex Bot force-pushed the codex/dagger-toml-module-config-1.0 branch 3 times, most recently from 4c03223 to 1ae79fb Compare June 2, 2026 00:42
@dagger-codex dagger-codex Bot changed the title 1.0 config split: dagger.toml and dagger-module.json [1.0-beta] 1.0 config split: dagger.toml and dagger-module.json Jun 3, 2026
@dagger-codex dagger-codex Bot changed the title [1.0-beta] 1.0 config split: dagger.toml and dagger-module.json [1.0-beta] 1.0 config split: dagger.toml and dagger-module.toml Jun 3, 2026
@dagger-codex
dagger-codex Bot force-pushed the codex/dagger-toml-module-config-1.0 branch 4 times, most recently from e4e9655 to 7ad3e8d Compare June 3, 2026 22:35
@dagger-codex
dagger-codex Bot requested a review from a team as a code owner June 3, 2026 22:35
@dagger-codex
dagger-codex Bot force-pushed the codex/dagger-toml-module-config-1.0 branch 8 times, most recently from 6be1f33 to 318304e Compare June 4, 2026 07:44
Introduce the 1.0 file layout by moving workspace config to root dagger.toml, workspace lock state to root dagger.lock, and current module config to dagger-module.toml.

Keep legacy dagger.json as the frozen JSON module format for compatibility, while loading and writing the current module format through the existing TOML plumbing.

Migrate legacy workspaces into the new layout, preserve module dependency pins in dagger-module.toml, move legacy .dagger/lock forward with fallback reads, and keep migration reports under .dagger as one-time review artifacts.

Scope migration to the selected legacy project and its conventional .dagger/modules tree so unrelated testdata, examples, and nested projects are not rewritten from a parent migration.

Remove modules.resolve from the lockfile model so module loading follows the same runtime Git/container lookup policy as the rest of the engine.

Regenerate schema, SDK, API, and docs surfaces so the public contract matches the new names.

Signed-off-by: Solomon Hykes <[email protected]>
@dagger-codex
dagger-codex Bot force-pushed the codex/dagger-toml-module-config-1.0 branch from 318304e to 36c075d Compare June 4, 2026 09:41
@shykes
shykes merged commit 7283cb2 into 1.0-beta Jun 4, 2026
76 checks passed
@shykes
shykes deleted the codex/dagger-toml-module-config-1.0 branch June 4, 2026 16:09
dagger-codex Bot pushed a commit that referenced this pull request Jun 5, 2026
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 Bot pushed a commit that referenced this pull request Jun 6, 2026
Conflict resolution details with original conflict hunks and resolved hunks.

1. 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
@@
  	LegacyDefaultPath bool

+ 	// LegacyArgCustomizations are workspace dagger.json argument customizations
+ 	// applied through asModule.
+ 	LegacyArgCustomizations []*modules.ModuleConfigArgument
+
- 	// Config values from workspace config.toml [modules.<name>.config].
+ 	// 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
```

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
@@
 	LegacyDefaultPath bool

 	// 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
```

2. 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
 	bodyEnv.EnterSelf(parentModEnv)
-	_, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ClassBodyForms, bodyEnv)
+	_, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ObjectBodyForms, bodyEnv)
```

Resolution: take main's newer Dang API names, but keep beta's captured `Closure` for conversion and body evaluation.

```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
@@
 	bodyEnv := dang.CreateOverlayValueScope(parentModEnv, parentClosure)
 	bodyEnv.EnterSelf(parentModEnv)
 	_, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ObjectBodyForms, bodyEnv)
```

3. 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
```

4. 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 Bot pushed a commit that referenced this pull request Jun 6, 2026
Conflict resolution details with original conflict hunks and resolved hunks.

1. 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
@@
        LegacyDefaultPath bool

+       // LegacyArgCustomizations are workspace dagger.json argument customizations
+       // applied through asModule.
+       LegacyArgCustomizations []*modules.ModuleConfigArgument
+
-       // Config values from workspace config.toml [modules.<name>.config].
+       // 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
```

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
@@
        LegacyDefaultPath bool

        // 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
```

2. 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
        bodyEnv.EnterSelf(parentModEnv)
-       _, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ClassBodyForms, bodyEnv)
+       _, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ObjectBodyForms, bodyEnv)
```

Resolution: take main's newer Dang API names, but keep beta's captured `Closure` for conversion and body evaluation.

```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
@@
        bodyEnv := dang.CreateOverlayValueScope(parentModEnv, parentClosure)
        bodyEnv.EnterSelf(parentModEnv)
        _, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ObjectBodyForms, bodyEnv)
```

3. Current docs promotion vs beta current-docs surface

Related PRs: beta #13338, main #13345.

Original conflict: main promoted 1.0-beta docs into `current_docs`, while beta already had the active 1.0-beta current-docs surface with beta links and `dagger.toml` workspace wording.

```diff
diff --cc docs/current_docs/adopting/workspace-setup.mdx
@@
+<<<<<<< HEAD
+You've seen Dagger work on [hello-dagger](/quickstart). Now set it up on your own project.
+=======
+You've seen Dagger work on [hello-dagger](../getting-started/quickstart.mdx). Now set it up on your own project.
+>>>>>>> origin/main
@@
+<<<<<<< HEAD
+`dagger mod install` creates a workspace configuration (`dagger.toml`) if needed and adds the selected module.
+=======
+`dagger mod install` creates a workspace configuration (`.dagger/config.toml`) if needed and adds the selected module.
+>>>>>>> origin/main
```

Resolution: keep the previously resolved beta/current-docs tree for `docs/current_docs` and `docs/sidebars.ts`. That preserves the current 1.0-beta links, aliases, and `dagger.toml` terminology while still accepting main's non-current docs payload.

```diff
diff --git a/docs/current_docs/adopting/workspace-setup.mdx b/docs/current_docs/adopting/workspace-setup.mdx
@@
 You've seen Dagger work on [hello-dagger](/quickstart). Now set it up on your own project.
@@
 `dagger mod install` creates a workspace configuration (`dagger.toml`) if needed and adds the selected module.
```

4. Versioned docs archive vs beta docs deletions and test-fixture moves

Related PRs: beta #13217 and #13338, main #13345.

Original conflict: main archived old current docs under `docs/versioned_docs`, while beta had deleted those old current-docs pages or moved some snippets into integration test fixtures.

```diff
diff --cc docs/current_docs/getting-started/ci-integrations/github-actions.mdx
@@
+<<<<<<< HEAD
+deleted in 1.0-beta current docs
+=======
+renamed to docs/versioned_docs/version-0.21.4/getting-started/ci-integrations/github-actions.mdx
+>>>>>>> origin/main

diff --cc docs/current_docs/cookbook/snippets/secret-variable/java/.gitignore
@@
+<<<<<<< HEAD
+renamed to core/integration/testdata/modules/java/path-context-git-04/.gitignore
+=======
+renamed to docs/versioned_docs/version-0.16.3/api/snippets/functions/arguments-array/java/.gitignore
+>>>>>>> origin/main
```

Resolution: keep beta's current-docs deletions and integration test fixture moves, and keep main's versioned docs/archive files under `docs/versioned_docs`.

```diff
diff --git a/core/integration/testdata/modules/java/path-context-git-04/.gitignore b/core/integration/testdata/modules/java/path-context-git-04/.gitignore
@@
+# beta integration fixture path remains

diff --git a/docs/versioned_docs/version-0.21.4/getting-started/ci-integrations/github-actions.mdx b/docs/versioned_docs/version-0.21.4/getting-started/ci-integrations/github-actions.mdx
@@
+# main versioned docs archive path remains
```

## Notes

- No separate `dagger generate -y` commit was added for this fresh merge. Current `origin/main` already includes the generated outputs that should be represented by the merge tree.

Signed-off-by: Solomon Hykes <[email protected]>
dagger-codex Bot pushed a commit that referenced this pull request Jun 8, 2026
Merges `main` into `1.0-beta`, resolving conflicts from the docs restructure/versioning work, the Dang API bump, and workspace/module config changes.

Grouped sections below are explicit groupings: hunks are grouped only when they come from the same conflicting PRs and use the same resolution rule. Each grouped section includes example hunks so the resolution rule is visible.

## Docs conflicts

### `docs/current_docs/` and `docs/sidebars.ts`

Related PRs: beta #13338, main #13345.

This is a grouped conflict category. Main #13345 promoted the 1.0-beta docs into `current_docs`, while beta #13338 already had the active 1.0-beta current-docs surface. I kept the beta/current-docs surface for `docs/current_docs` and `docs/sidebars.ts`, including beta route aliases and `dagger.toml` terminology. Main's promoted docs payload is still accepted outside this current-docs surface as versioned/static docs.

Example hunk 1: workspace setup keeps beta's current route and `dagger.toml` wording instead of main's relative link and `.dagger/config.toml` wording.

```diff
diff --cc docs/current_docs/adopting/workspace-setup.mdx
@@
+<<<<<<< HEAD
+You've seen Dagger work on [hello-dagger](/quickstart). Now set it up on your own project.
+=======
+You've seen Dagger work on [hello-dagger](../getting-started/quickstart.mdx). Now set it up on your own project.
+>>>>>>> origin/main
@@
+<<<<<<< HEAD
+`dagger mod install` creates a workspace configuration (`dagger.toml`) if needed and adds the selected module.
+=======
+`dagger mod install` creates a workspace configuration (`.dagger/config.toml`) if needed and adds the selected module.
+>>>>>>> origin/main
```

Resolved:

```diff
diff --git a/docs/current_docs/adopting/workspace-setup.mdx b/docs/current_docs/adopting/workspace-setup.mdx
@@
 You've seen Dagger work on [hello-dagger](/quickstart). Now set it up on your own project.
@@
 `dagger mod install` creates a workspace configuration (`dagger.toml`) if needed and adds the selected module.
```

Example hunk 2: Argo Workflows follows the same current-docs rule, keeping beta's current aliases and `dagger.toml` terminology instead of main's promoted relative links and old workspace config path.

```diff
diff --cc docs/current_docs/adopting/triggers/argo-workflows.mdx
@@
+<<<<<<< HEAD
+For checks with no workflow YAML at all, enable [Cloud Checks](/adopting/triggers) with `dagger ws autocheck on`.
+=======
+For checks with no workflow YAML at all, enable [Cloud Checks](./index.mdx) with `dagger ws autocheck on`.
+>>>>>>> origin/main
@@
+<<<<<<< HEAD
+- A repository with a Dagger workspace (`dagger.toml`) — see [Workspace Setup](/adopting/workspace-setup)
+=======
+- A repository with a Dagger workspace (`.dagger/config.toml`) — see [Workspace Setup](../workspace-setup.mdx)
+>>>>>>> origin/main
```

Resolved:

```diff
diff --git a/docs/current_docs/adopting/triggers/argo-workflows.mdx b/docs/current_docs/adopting/triggers/argo-workflows.mdx
@@
 For checks with no workflow YAML at all, enable [Cloud Checks](/adopting/triggers) with `dagger ws autocheck on`.
@@
 - A repository with a Dagger workspace (`dagger.toml`) — see [Workspace Setup](/adopting/workspace-setup)
```

### `docs/versioned_docs/` archive

Related PRs: beta #13338, main #13345.

This is a grouped conflict category. Main #13345 archived old docs under `docs/versioned_docs`, while beta #13338 removed old pages from the active current-docs tree. I kept beta's current-doc deletions and kept main's archive files under `docs/versioned_docs`; those are different final destinations, so both sides are represented without resurrecting old pages under `docs/current_docs`.

Example hunk:

```diff
diff --cc docs/current_docs/getting-started/ci-integrations/github-actions.mdx
@@
+<<<<<<< HEAD
+deleted in 1.0-beta current docs
+=======
+renamed to docs/versioned_docs/version-0.21.4/getting-started/ci-integrations/github-actions.mdx
+>>>>>>> origin/main
```

Resolved:

```diff
diff --git a/docs/versioned_docs/version-0.21.4/getting-started/ci-integrations/github-actions.mdx b/docs/versioned_docs/version-0.21.4/getting-started/ci-integrations/github-actions.mdx
@@
+# main versioned docs archive path remains
```

## Code conflicts

### `core/sdk/dang_helpers.go`

Related PRs: beta #13296, main #13318.

Main upgraded Dang and renamed class APIs to object APIs. Beta fixed rehydrated method calls by preserving the constructor closure so imports remain in scope. I used main's newer Dang API names and kept beta's captured `Closure` behavior.

```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
        bodyEnv.EnterSelf(parentModEnv)
-       _, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ClassBodyForms, bodyEnv)
+       _, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ObjectBodyForms, bodyEnv)
```

Resolved:

```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
@@
        bodyEnv := dang.CreateOverlayValueScope(parentModEnv, parentClosure)
        bodyEnv.EnterSelf(parentModEnv)
        _, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ObjectBodyForms, bodyEnv)
```

### `core/module.go`

Related PRs: beta #13300, main #13329.

Main added `LegacyArgCustomizations`, which is used by merged `modulesource.go` code. Beta renamed workspace configuration terminology for `dagger.toml` settings. I kept both the new field and beta's settings terminology.

```diff
diff --cc core/module.go
@@
        LegacyDefaultPath bool

+       // LegacyArgCustomizations are workspace dagger.json argument customizations
+       // applied through asModule.
+       LegacyArgCustomizations []*modules.ModuleConfigArgument
+
-       // Config values from workspace config.toml [modules.<name>.config].
+       // 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
```

Resolved:

```diff
diff --git a/core/module.go b/core/module.go
@@
        LegacyDefaultPath bool

        // 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
```

## Test fixture conflicts

Related PRs: beta #13217, main #13345.

This is a grouped conflict category. Beta moved snippet files into integration test fixtures, while main #13345 archived the old docs snippets under `docs/versioned_docs`. I kept beta's integration fixture paths and kept main's versioned docs archive paths.

Example hunk:

```diff
diff --cc docs/current_docs/cookbook/snippets/secret-variable/java/.gitignore
@@
+<<<<<<< HEAD
+renamed to core/integration/testdata/modules/java/path-context-git-04/.gitignore
+=======
+renamed to docs/versioned_docs/version-0.16.3/api/snippets/functions/arguments-array/java/.gitignore
+>>>>>>> origin/main
```

Resolved:

```diff
diff --git a/core/integration/testdata/modules/java/path-context-git-04/.gitignore b/core/integration/testdata/modules/java/path-context-git-04/.gitignore
@@
+# beta integration fixture path remains

diff --git a/docs/versioned_docs/version-0.16.3/api/snippets/functions/arguments-array/java/.gitignore b/docs/versioned_docs/version-0.16.3/api/snippets/functions/arguments-array/java/.gitignore
@@
+# main versioned docs archive path remains
```

## Notes

- No separate `dagger generate -y` commit was added for this fresh merge. Current `origin/main` already includes the generated outputs that should be represented by the merge tree.

Signed-off-by: Solomon Hykes <[email protected]>
dagger-codex Bot pushed a commit that referenced this pull request Jun 8, 2026
Merges `main` into `1.0-beta`, resolving conflicts from the docs restructure/versioning work, the Dang API bump, and workspace/module config changes.

Grouped sections below are explicit groupings: hunks are grouped only when they come from the same conflicting PRs and use the same resolution rule. Each grouped section includes example hunks so the resolution rule is visible.

## Docs conflicts

### `docs/current_docs/` and `docs/sidebars.ts`

Related PRs: beta #13338, main #13345.

This is a grouped conflict category. Main #13345 promoted the 1.0-beta docs into `current_docs`, while beta #13338 already had the active 1.0-beta current-docs surface. I kept the beta/current-docs surface for `docs/current_docs` and `docs/sidebars.ts`, including beta route aliases and `dagger.toml` terminology. Main's promoted docs payload is still accepted outside this current-docs surface as versioned/static docs.

Example hunk 1: workspace setup keeps beta's current route and `dagger.toml` wording instead of main's relative link and `.dagger/config.toml` wording.

```diff
diff --cc docs/current_docs/adopting/workspace-setup.mdx
@@
+<<<<<<< HEAD
+You've seen Dagger work on [hello-dagger](/quickstart). Now set it up on your own project.
+=======
+You've seen Dagger work on [hello-dagger](../getting-started/quickstart.mdx). Now set it up on your own project.
+>>>>>>> origin/main
@@
+<<<<<<< HEAD
+`dagger mod install` creates a workspace configuration (`dagger.toml`) if needed and adds the selected module.
+=======
+`dagger mod install` creates a workspace configuration (`.dagger/config.toml`) if needed and adds the selected module.
+>>>>>>> origin/main
```

Resolved:

```diff
diff --git a/docs/current_docs/adopting/workspace-setup.mdx b/docs/current_docs/adopting/workspace-setup.mdx
@@
 You've seen Dagger work on [hello-dagger](/quickstart). Now set it up on your own project.
@@
 `dagger mod install` creates a workspace configuration (`dagger.toml`) if needed and adds the selected module.
```

Example hunk 2: Argo Workflows follows the same current-docs rule, keeping beta's current aliases and `dagger.toml` terminology instead of main's promoted relative links and old workspace config path.

```diff
diff --cc docs/current_docs/adopting/triggers/argo-workflows.mdx
@@
+<<<<<<< HEAD
+For checks with no workflow YAML at all, enable [Cloud Checks](/adopting/triggers) with `dagger ws autocheck on`.
+=======
+For checks with no workflow YAML at all, enable [Cloud Checks](./index.mdx) with `dagger ws autocheck on`.
+>>>>>>> origin/main
@@
+<<<<<<< HEAD
+- A repository with a Dagger workspace (`dagger.toml`) — see [Workspace Setup](/adopting/workspace-setup)
+=======
+- A repository with a Dagger workspace (`.dagger/config.toml`) — see [Workspace Setup](../workspace-setup.mdx)
+>>>>>>> origin/main
```

Resolved:

```diff
diff --git a/docs/current_docs/adopting/triggers/argo-workflows.mdx b/docs/current_docs/adopting/triggers/argo-workflows.mdx
@@
 For checks with no workflow YAML at all, enable [Cloud Checks](/adopting/triggers) with `dagger ws autocheck on`.
@@
 - A repository with a Dagger workspace (`dagger.toml`) — see [Workspace Setup](/adopting/workspace-setup)
```

### `docs/versioned_docs/` archive

Related PRs: beta #13338, main #13345.

This is a grouped conflict category. Main #13345 archived old docs under `docs/versioned_docs`, while beta #13338 removed old pages from the active current-docs tree. I kept beta's current-doc deletions and kept main's archive files under `docs/versioned_docs`; those are different final destinations, so both sides are represented without resurrecting old pages under `docs/current_docs`.

Example path conflict, not a content hunk:

- Beta removed the old live current-docs page: `docs/current_docs/getting-started/ci-integrations/github-actions.mdx`
- Main archived that old page at: `docs/versioned_docs/version-0.21.4/getting-started/ci-integrations/github-actions.mdx`

Resolution:

- keep the file removed from `docs/current_docs`
- keep main's archived copy under `docs/versioned_docs/version-0.21.4/`

No line-level content hunk was resolved for this page; the conflict was about whether the old current-docs path should remain live or only exist in the versioned archive.## Code conflicts

### `core/sdk/dang_helpers.go`

Related PRs: beta #13296, main #13318.

Main upgraded Dang and renamed class APIs to object APIs. Beta fixed rehydrated method calls by preserving the constructor closure so imports remain in scope. I used main's newer Dang API names and kept beta's captured `Closure` behavior.

```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
        bodyEnv.EnterSelf(parentModEnv)
-       _, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ClassBodyForms, bodyEnv)
+       _, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ObjectBodyForms, bodyEnv)
```

Resolved:

```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
@@
        bodyEnv := dang.CreateOverlayValueScope(parentModEnv, parentClosure)
        bodyEnv.EnterSelf(parentModEnv)
        _, err = dang.EvaluateFormsWithPhases(ctx, parentConstructor.ObjectBodyForms, bodyEnv)
```

### `core/module.go`

Related PRs: beta #13300, main #13329.

Main added `LegacyArgCustomizations`, which is used by merged `modulesource.go` code. Beta renamed workspace configuration terminology for `dagger.toml` settings. I kept both the new field and beta's settings terminology.

```diff
diff --cc core/module.go
@@
        LegacyDefaultPath bool

+       // LegacyArgCustomizations are workspace dagger.json argument customizations
+       // applied through asModule.
+       LegacyArgCustomizations []*modules.ModuleConfigArgument
+
-       // Config values from workspace config.toml [modules.<name>.config].
+       // 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
```

Resolved:

```diff
diff --git a/core/module.go b/core/module.go
@@
        LegacyDefaultPath bool

        // 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
```

## Test fixture conflicts

Related PRs: beta #13217, main #13345.

This is a grouped conflict category. Beta moved snippet files into integration test fixtures, while main #13345 archived the old docs snippets under `docs/versioned_docs`. These are path conflicts, not line-level content hunks. I kept beta's integration fixture paths and kept main's versioned docs archive paths.

Example path conflict, not a content hunk:

- Beta moved the old docs snippet into an integration fixture path: `core/integration/testdata/modules/java/path-context-git-04/.gitignore`
- Main archived that old docs snippet at: `docs/versioned_docs/version-0.16.3/api/snippets/functions/arguments-array/java/.gitignore`
- The old live docs path was: `docs/current_docs/cookbook/snippets/secret-variable/java/.gitignore`

Resolution:

- keep beta's integration fixture file
- keep main's versioned docs archive file
- do not restore the old live `docs/current_docs` snippet path

No line-level content hunk was resolved for this example; the conflict was about preserving the right final paths on both sides.

## Notes

- No separate `dagger generate -y` commit was added for this fresh merge. Current `origin/main` already includes the generated outputs that should be represented by the merge tree.

Signed-off-by: Solomon Hykes <[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