Skip to content

[1.0-beta] Merge main (15884210ff) into 1.0-beta - #13327

Merged
tiborvass merged 20 commits into
1.0-betafrom
codex/merge-main-into-1.0-beta
Jun 4, 2026
Merged

tiborvass merged 20 commits into
1.0-betafrom
codex/merge-main-into-1.0-beta

Conversation

@dagger-codex

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

Copy link
Copy Markdown
Contributor

Merge main into 1.0-beta

Conflict resolution details with original conflict hunks and resolved hunks.

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

Original conflict: 1.0-beta deleted the old mega-test as part of the split, while main added a regression to that deleted file.

diff --git a/core/integration/module_test.go b/core/integration/module_test.go
index 392649287..e86849c65 100644
--- a/core/integration/module_test.go
+++ b/core/integration/module_test.go
@@ -7531,6 +7531,24 @@ func (m *Test) ObjsWithNothing() ([]*Test, error) {
 	require.JSONEq(t, `{"objsWithNothing":[null,{"dirs":[null]}]}`, out)
 }

+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@")
+}
+
 func (ModuleSuite) TestFunctionCacheControl(ctx context.Context, t *testctx.T) {

Resolution: keep beta's deleted mega-test, port the regression to the split runtime behavior test, and put the test module function in beta's existing runtime cache-control fixture.

diff --git a/core/integration/module_runtime_behavior_test.go b/core/integration/module_runtime_behavior_test.go
@@ -378,6 +378,14 @@ func (ModuleSuite) TestReturnNil(ctx context.Context, t *testctx.T) {
 	require.JSONEq(t, `{"objsWithNothing":[null,{"dirs":[null]}]}`, out)
 }

+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@")
+}
+
 func (ModuleSuite) TestFunctionCacheControl(ctx context.Context, t *testctx.T) {
diff --git a/core/integration/testdata/modules/go/runtime-cache-control/main.go b/core/integration/testdata/modules/go/runtime-cache-control/main.go
@@ -17,6 +17,11 @@ func (m *Test) TestNeverCache() string {
 	return rand.Text()
 }

+// +cache="never"
+func (m *Test) Touch() *Test {
+	return m
+}
+
 // My rad doc on TestAlwaysCache
  1. Shell helper command path

Original conflict: main moved the helper to dagger shell, while beta added daggerShellAt and root-shell -m support.

diff --cc core/integration/shell_test.go
@@@ -32,16 -22,8 +32,20 @@@ func TestShell(t *testing.T)
  }

  func daggerShell(script string) dagger.WithContainerFunc {
 +	return daggerShellAt("", script)
 +}
 +
 +func daggerShellAt(modPath, script string) dagger.WithContainerFunc {
  	return func(c *dagger.Container) *dagger.Container {
++<<<<<<< HEAD:core/integration/shell_test.go
 +		execArgs := []string{"dagger"}
 +		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
  			Stdin:                         script,
  			ExperimentalPrivilegedNesting: true,
  		})
@@ -50,7 +54,7 @@ func daggerShellAt(modPath, script string) dagger.WithContainerFunc {

 func daggerShellNoMod(script string) dagger.WithContainerFunc {
 	return func(c *dagger.Container) *dagger.Container {
-		return c.WithExec([]string{"dagger", "-M"}, dagger.ContainerWithExecOpts{
+		return c.WithExec([]string{"dagger", "shell", "-M"}, dagger.ContainerWithExecOpts{
 			Stdin:                         script,
 			ExperimentalPrivilegedNesting: true,
 		})
 	}
 }

Resolution: combine main's explicit dagger shell invocation with beta's daggerShellAt helper. daggerShellAt now starts from dagger shell and appends -m <path> when needed, while daggerShellNoMod uses dagger shell -M.

diff --git a/core/integration/shell_test.go b/core/integration/shell_test.go
@@ -37,18 +37,18 @@ func daggerShell(script string) dagger.WithContainerFunc {

 func daggerShellAt(modPath, script string) dagger.WithContainerFunc {
 	return func(c *dagger.Container) *dagger.Container {
-		execArgs := []string{"dagger"}
+		execArgs := []string{"dagger", "shell"}
 		if modPath != "" {
 			execArgs = append(execArgs, "-m", modPath)
 		}
 		return c.WithExec(execArgs, dagger.ContainerWithExecOpts{
 			Stdin:                         script,
 			ExperimentalPrivilegedNesting: true,
 		})
 	}
 }

 func daggerShellNoMod(script string) dagger.WithContainerFunc {
 	return func(c *dagger.Container) *dagger.Container {
-		return c.WithExec([]string{"dagger", "-M"}, dagger.ContainerWithExecOpts{
+		return c.WithExec([]string{"dagger", "shell", "-M"}, dagger.ContainerWithExecOpts{
 			Stdin:                         script,
 			ExperimentalPrivilegedNesting: true,
 		})
 	}
 }
  1. Deleted container cookbook page vs volatile variable docs

Original conflict: beta deleted the old cookbook page in the docs restructure; main added volatile variable guidance there.

diff --git a/docs/current_docs/cookbook/containers.mdx b/docs/current_docs/cookbook/containers.mdx
index 4bf6e7988..b97d036fc 100644
--- a/docs/current_docs/cookbook/containers.mdx
+++ b/docs/current_docs/cookbook/containers.mdx
@@ -18,3 +18,24 @@ Dagger allows you to build, publish, and export container images, also known as
 <ExportContainerImageToHost />

 <SetEnvVar />
+
+## Use volatile variables for exec-time metadata
+
+`withVolatileVariable` sets a non-secret environment variable for future `withExec` calls without invalidating exec cache when only the variable's value changes.
+
+Typical examples include CI and reporting metadata such as:
+- commit SHA
+- branch or ref
+- CI run ID
+
+:::warning
+`withVolatileVariable` is an expert-only escape hatch. Use it only when you are certain that changing the variable alone must not invalidate cached `withExec` results. If that assumption is wrong, Dagger may reuse stale or incorrect cached results.
+:::

Resolution: keep the cookbook deletion and move the content to the beta Container type page, which now owns Container behavior docs.

diff --git a/docs/current_docs/extending/types/container.mdx b/docs/current_docs/extending/types/container.mdx
@@ -60,3 +60,30 @@ The default address can be any valid container image reference, such as:
 - `alpine:3.19` - Docker Hub image with specific version
 - `ghcr.io/owner/image:tag` - GitHub Container Registry image
 - `gcr.io/project/image:tag` - Google Container Registry image
+
+## Volatile variables
+
+`withVolatileVariable` sets a non-secret environment variable for future
+`withExec` calls without invalidating exec cache when only the variable's value
+changes.
+
+Typical examples include CI and reporting metadata such as commit SHAs, branch
+or ref names, and CI run IDs.
+
+:::warning
+`withVolatileVariable` is an expert-only escape hatch. Use it only when you are
+certain that changing the variable alone must not invalidate cached `withExec`
+results. If that assumption is wrong, Dagger may reuse stale or incorrect
+cached results.
+:::
  1. Deleted function-caching page vs volatile variable cache note

Original conflict: beta deleted the old function caching module page; main added a cache note there.

diff --git a/docs/current_docs/extending/modules/function-caching.mdx b/docs/current_docs/extending/modules/function-caching.mdx
index 707c1a376..6622233e5 100644
--- a/docs/current_docs/extending/modules/function-caching.mdx
+++ b/docs/current_docs/extending/modules/function-caching.mdx
@@ -252,6 +252,8 @@ This means:
 If you need a specific step to always re-run, add a cache-busting input to that step (for example, a
 timestamp environment variable used only for that operation).

+If you need non-secret metadata to be visible to a `withExec` step without invalidating cache when only that metadata changes, use `withVolatileVariable` on the `Container`. This is an expert-only escape hatch: cached `withExec` results may be reused even when the volatile value changes, and reruns caused by other inputs will see the latest volatile value. See the [container cookbook](../../cookbook/containers.mdx#use-volatile-variables-for-exec-time-metadata).
+
 ### Secrets and caching

Resolution: keep the page deletion and move the cache behavior note to beta's new cache explainer, with a link to the new Container section.

diff --git a/docs/current_docs/extending/how-dagger-works/cache.mdx b/docs/current_docs/extending/how-dagger-works/cache.mdx
@@ -14,6 +14,20 @@ Different inputs: Dagger reruns the affected work.

 This is why module API design affects speed.

+## Function Cache Hits
+
+A function cache hit skips the function entirely, so none of its internal steps
+run. A cache miss runs the function, but individual container/file steps inside
+it may still be cache hits if their inputs are unchanged.
+
+If you need a specific step to always re-run, add a cache-busting input to that
+step. If you need non-secret metadata to be visible to a `withExec` step without
+invalidating cache when only that metadata changes, use
+`withVolatileVariable` on the `Container`. Cached `withExec` results may be
+reused even when the volatile value changes, and reruns caused by other inputs
+will see the latest volatile value. See
+[Container volatile variables](../types/container.mdx#volatile-variables).
+
 ## Inputs Matter
  1. Dang dependency version

Original conflict: beta had an earlier Dang pseudo-version; main had a newer one.

diff --cc go.mod
@@@ -152,7 -151,7 +152,11 @@@ require
  	github.com/urfave/cli v1.22.17
  	github.com/vektah/gqlparser/v2 v2.5.32
  	github.com/vito/bubbline v0.0.0-20250312195236-5f4f49d6ebcb
++<<<<<<< HEAD
 +	github.com/vito/dang v0.0.0-20260527191113-ad5bca2669a9
++=======
+	github.com/vito/dang v0.0.0-20260602175442-56ec0c007a23
++>>>>>>> origin/main
  	github.com/vito/go-interact v1.0.2

Resolution: take main's newer Dang because the merged core/sdk/dang_helpers.go uses the newer dang.FieldDecl API; go.sum follows the same version choice.

diff --git a/go.mod b/go.mod
@@ -152,7 +152,7 @@ require (
 	github.com/urfave/cli v1.22.17
 	github.com/vektah/gqlparser/v2 v2.5.32
 	github.com/vito/bubbline v0.0.0-20250312195236-5f4f49d6ebcb
-	github.com/vito/dang v0.0.0-20260527191113-ad5bca2669a9
+	github.com/vito/dang v0.0.0-20260602175442-56ec0c007a23
 	github.com/vito/go-interact v1.0.2
  1. Generated ConfigSchema client comments

Original conflict: repeated in the generated engine-dev/dagger-engine clients. Beta listed the new workspace schema files; main kept the old list but shifted the source line.

diff --cc modules/dev/internal/dagger/engine-dev.gen.go
@@@ -278,8 -277,8 +277,13 @@@ func (r *EngineDev) ClientDockerConfig(
  }

  // Generate the json schema for a dagger config file
++<<<<<<< HEAD
 +// 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:359:1)
++=======
+ // Currently supported: "dagger.json", "engine.json"
+ func (r *EngineDev) ConfigSchema(filename string) *File { // engine-dev (../../../../toolchains/engine-dev/main.go:362:1)
++>>>>>>> origin/main

Resolution: keep beta's expanded schema filename list and main's shifted line number, matching the merged source at toolchains/engine-dev/main.go:362.

diff --git a/modules/dev/internal/dagger/engine-dev.gen.go b/modules/dev/internal/dagger/engine-dev.gen.go
@@ -278,8 +278,8 @@ func (r *EngineDev) ClientDockerConfig() *Secret {
 }

 // 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:359:1)
+// 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)
  1. Helper removed by beta split but referenced by merged main test

Original conflict effect: main's engine persistence test now used the helper from lockfile tests, while beta removed that helper with the lockfile split.

diff --git a/core/integration/engine_persistence_test.go b/core/integration/engine_persistence_test.go
@@ -1127,6 +1127,7 @@ git -C /root/srv/repo.git update-server-info
 		hostname := identity.NewID() + ".test"
 		gitSvc, repoBaseURL := gitSmartHTTPServiceDirAuth(ctx, t, c, hostname, gitDir, "", nil)
 		repoURL := repoBaseURL + "/repo.git"
+		gitHost := moduleResolveServiceHost(t, repoURL)

Resolution: add the small URL host helper beside the test that now needs it, without restoring the removed lockfile helper section.

diff --git a/core/integration/engine_persistence_test.go b/core/integration/engine_persistence_test.go
@@ -11,6 +11,7 @@ import (
 	"context"
 	"crypto/rand"
 	"fmt"
+	"net/url"
 	"os"
@@ -25,6 +26,17 @@ import (
 	"dagger.io/dagger"
 )

+func moduleResolveServiceHost(t *testctx.T, rawURL string) string {
+	t.Helper()
+	parsed, err := url.Parse(rawURL)
+	require.NoError(t, err)
+	host := parsed.Hostname()
+	require.NotEmpty(t, host)
+	return host
+}
+
 func (CachePersistenceSuite) TestDiskPersistenceAcrossRestart(ctx context.Context, t *testctx.T) {

CI follow-up: release publish dry-run in cache persistence now loads the synthetic release repo as a workspace with -W "$MODULE_REF" instead of as an extra module with -m "$MODULE_REF". The synthetic root still uses workspace-only toolchains, so this matches the CLI migration path while preserving the dry-run assertions.

diff --git a/core/integration/engine_persistence_test.go b/core/integration/engine_persistence_test.go
@@
-/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
+/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

Signed-off-by: Tibor Vass [email protected]
Signed-off-by: Solomon Hykes [email protected]

Current main note

Current origin/main includes the daggerverse-preview workflow update to Dagger v0.21.4, so this branch no longer carries the earlier v0.21.0 compatibility workaround in modules/daggerverse.

Generate

Amended the separate generate commit to match the CI generator output from Dagger v0.21.4. The current generate commit is e45e7e4a7; it only refreshes docs/static/reference/php/Dagger/Container.html, removing the earlier local v0.21.5-dev Go runtime output that CI could not reproduce.

Checks

  • dagger --x-release v0.21.4 call test-split test-cache-persistence --progress=plain
  • go test ./core/integration -run '^$'
  • go test ./cmd/dagger -run TestRunRoot
  • go test ./core/sdk
  • (cd modules/daggerverse && go test ./...)

matipan and others added 16 commits June 1, 2026 18:01
Fixes an issue when releasing the engine & CLI from the same source but with different versions which caused subsequent releases to use incorrectly cached artifacts

Signed-off-by: Erik Sipsma <[email protected]>
Module functions annotated with +cache="never" were translated to dagql FieldSpec.DoNotCache. That avoided storing or reusing the result, but it also sent the call through the detached result path. When such a function returned a module object, the CLI still selected the object's id field to print a handle. The id resolver asks the dagql result for an ID, but DoNotCache results are detached with no shared ID, so calls failed with "result *core.ModuleObject is detached".

Use a per-call implicit cache input for the Never policy instead of DoNotCache. This gives every invocation a unique call digest, so results are not reused across invocations, while still going through normal attachment and ID assignment. Keep IsPersistable=false so those results are not persisted between sessions or restarts.

Add unit coverage for the policy-to-implicit-input mapping and an integration repro for a never-cached module method returning itself.

Signed-off-by: Erik Sipsma <[email protected]>
Dagger owner leases only retained the snapshot directly attached to a persisted result, along with content digests already recorded for that one snapshot. Image export walks the full snapshot parent chain, and imported base image layer blobs plus generated compression variants are recorded against the individual layer snapshots in that chain. After the producing session ended, prune could therefore reclaim parent layer content that was still needed by a retained container result.

This showed up as intermittent Container.asTarball(forcedCompression: Zstd) failures during engine builds: the retained container filesystem could still be read, but export could no longer find a local layer blob or compression variant.

When attaching an owner lease, walk the snapshot parent chain and attach each snapshot and its known content digests to the same containerd lease. Also register the owner lease against each chain snapshot so content recorded later, such as zstd variants, is backfilled to the lease.

Add an integration repro that pins a container across sessions, creates zstd tarball content, prunes aggressively, verifies the filesystem remains readable, then exports the pinned container as a zstd tarball again.

Validated with:

- go test ./engine/snapshots

- dagger --progress=plain call engine-dev test --pkg ./core/integration --run='^TestLocalCache/TestLocalCachePruneDoesNotDropZstdTarballLayerContent$'

Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
* dagql/call: hash recipes with alternate receiver digests

Add a helper for deriving the digest a call would have with a different immediate receiver digest.

Volatile exec cache keys use this to normalize receiver history without changing argument or module identity.

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

* dagql: publish request-local cache hit transforms

Allow dynamic-input callers to transform a broad equivalent cache hit into a detached result for the current request.

The cache publishes the transformed result under the exact request instead of teaching the exact request identity to the broad shared hit.

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

* dagql: test volatile session-resource cache invariants

Cover the cache contract used by volatile-style dynamic inputs: rewrite raw values out of call identity, propagate required session-resource handles, allow sessions with the bound handle to hit cache, and reject unbound sessions.

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

* core: add container volatile variables

Add withVolatileVariable and withoutVolatileVariable for non-secret env values that apply only to future execs.

Volatile values stay out of persistent env introspection and image config, are rejected by Dagger-side expansion, and are ignored for exec cache identity while still being rebased onto cache-hit containers for later execs.

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

* docs: document container volatile variables

Explain when to use volatile variables, how they differ from persistent env and secrets, and why they are an expert-only cache escape hatch.

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

* fix lint: gofmt alignment and duplicate container clone block

Reformat persistedContainerExecLazy struct tags to satisfy gofmt and
replace the inlined container-cloning block in withExec with a call to
the existing cloneContainerForSchemaChild helper.

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

* dagql: add volatile cache edge-case tests and scope comment

Add two cache-level tests:
- concurrent sessions with divergent volatile values resolve their own
  bindings independently after sharing a broad cache hit
- nested volatile + non-volatile exec chain: changing only the volatile
  value reuses the volatile exec cache while a changed non-volatile
  marker correctly triggers a miss on the child

Scope the dynamic-input / CacheHitTransform mechanism in cache_egraph.go
to clarify that volatile variables are currently the only consumer.

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

* use name only in content digest for volatile vars

Signed-off-by: Alex Couture-Beil <[email protected]>

* disable TestVolatileVariableCacheHitKeepsEachContainerValue

Signed-off-by: Alex Couture-Beil <[email protected]>

* chore: lint related cleanup

Signed-off-by: Alex Couture-Beil <[email protected]>

* Revert "dagql/call: hash recipes with alternate receiver digests"

This reverts commit 18208ae.

Signed-off-by: Alex Couture-Beil <[email protected]>

* fix: move connects into each volatile subtest

The volatile env variable can causes races when the same variable name,
e.g. RUN_ID, is used across a shared session. To prevent these test
races, we need to run each test with a seperate session.

Signed-off-by: Alex Couture-Beil <[email protected]>

* chore: generate

Signed-off-by: Alex Couture-Beil <[email protected]>

---------

Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Alex Couture-Beil <[email protected]>
Co-authored-by: Solomon Hykes <[email protected]>
* chore: bump dependencies to v0.21.4

Signed-off-by: Matias Pan <[email protected]>

* chore: add release notes for v0.21.4

Signed-off-by: Matias Pan <[email protected]>

* bump .next to next release version

Signed-off-by: Matias Pan <[email protected]>

---------

Signed-off-by: Matias Pan <[email protected]>
fixes #13216

Signed-off-by: Alex Couture-Beil <[email protected]>
Snapshot owner leases can be removed when result snapshot links are replaced or pruned, while a later sync for the same result role can attach a new snapshot under the same lease ID. RemoveLease previously dropped snapshot manager synchronization before deleting the underlying containerd lease, allowing AttachLease to recreate the lease while that delete was still in flight. The delete could then remove the recreated lease before AddResource, surfacing as a lease not found error while attaching snapshot resources.

Serialize owner lease lifecycle operations with a keyed locker scoped to the lease ID. This prevents attach/remove for the same owner lease from interleaving while avoiding holding the snapshot manager mutex during containerd lease deletion. Remove the unused affected snapshot scan and cover the race with a deterministic unit test.

Signed-off-by: Erik Sipsma <[email protected]>
@dagger-codex
dagger-codex Bot requested review from a team as code owners June 4, 2026 18:25
@tiborvass
tiborvass marked this pull request as draft June 4, 2026 18:36
@tiborvass

tiborvass commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Needs work, the conflict resolution is incorrect at least in core/integration/shell_test.go

@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta branch 2 times, most recently from 3f18363 to c1ec35b Compare June 4, 2026 19:32
* Simplify function call return handling

Module function calls still used the legacy metadata directory to shuttle return values and returned errors out of the nested runtime container. That path existed for the older pre-Theseus cache model, but it now makes execution do extra container output work for state that is already part of the live function call.

Record return values and returned errors directly on the active FunctionCall, have runtimes return only execution errors, and read the recorded result after the runtime completes. This removes the .daggermod output/error mounts, module exec error extraction plumbing, and metadata constants while keeping the public returnValue/returnError API intact.

The simpler path also avoids the snapshot and read-back bottleneck in function call execution.

Signed-off-by: Erik Sipsma <[email protected]>

* Fix function return lint cleanup

Signed-off-by: Erik Sipsma <[email protected]>

---------

Signed-off-by: Erik Sipsma <[email protected]>
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta branch from 2d04006 to e039948 Compare June 4, 2026 20:48
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta branch from 45e37df to daae200 Compare June 4, 2026 21:23
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta branch from daae200 to 21d7099 Compare June 4, 2026 22:19
tiborvass added 2 commits June 4, 2026 23:26
Conflict resolution details with original conflict hunks and resolved hunks.

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

Original conflict: 1.0-beta deleted the old mega-test as part of the split, while main added a regression to that deleted file.

```diff
diff --git a/core/integration/module_test.go b/core/integration/module_test.go
index 3926492..e86849c 100644
--- a/core/integration/module_test.go
+++ b/core/integration/module_test.go
@@ -7531,6 +7531,24 @@ func (m *Test) ObjsWithNothing() ([]*Test, error) {
 	require.JSONEq(t, `{"objsWithNothing":[null,{"dirs":[null]}]}`, out)
 }

+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@")
+}
+
 func (ModuleSuite) TestFunctionCacheControl(ctx context.Context, t *testctx.T) {
```

Resolution: keep beta's deleted mega-test, port the regression to the split runtime behavior test, and put the test module function in beta's existing runtime cache-control fixture.

```diff
diff --git a/core/integration/module_runtime_behavior_test.go b/core/integration/module_runtime_behavior_test.go
@@ -378,6 +378,14 @@ func (ModuleSuite) TestReturnNil(ctx context.Context, t *testctx.T) {
 	require.JSONEq(t, `{"objsWithNothing":[null,{"dirs":[null]}]}`, out)
 }

+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@")
+}
+
 func (ModuleSuite) TestFunctionCacheControl(ctx context.Context, t *testctx.T) {
diff --git a/core/integration/testdata/modules/go/runtime-cache-control/main.go b/core/integration/testdata/modules/go/runtime-cache-control/main.go
@@ -17,6 +17,11 @@ func (m *Test) TestNeverCache() string {
 	return rand.Text()
 }

+// +cache="never"
+func (m *Test) Touch() *Test {
+	return m
+}
+
 // My rad doc on TestAlwaysCache
```

2. Shell helper command path

Original conflict: main moved the helper to `dagger shell`, while beta added `daggerShellAt` and root-shell `-m` support.

```diff
diff --cc core/integration/shell_test.go
@@@ -32,16 -22,8 +32,20 @@@ func TestShell(t *testing.T)
  }

  func daggerShell(script string) dagger.WithContainerFunc {
 +	return daggerShellAt("", script)
 +}
 +
 +func daggerShellAt(modPath, script string) dagger.WithContainerFunc {
  	return func(c *dagger.Container) *dagger.Container {
++<<<<<<< HEAD:core/integration/shell_test.go
 +		execArgs := []string{"dagger"}
 +		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
  			Stdin:                         script,
  			ExperimentalPrivilegedNesting: true,
  		})
@@ -50,7 +54,7 @@ func daggerShellAt(modPath, script string) dagger.WithContainerFunc {

 func daggerShellNoMod(script string) dagger.WithContainerFunc {
 	return func(c *dagger.Container) *dagger.Container {
-		return c.WithExec([]string{"dagger", "-M"}, dagger.ContainerWithExecOpts{
+		return c.WithExec([]string{"dagger", "shell", "-M"}, dagger.ContainerWithExecOpts{
 			Stdin:                         script,
 			ExperimentalPrivilegedNesting: true,
 		})
 	}
 }
```

Resolution: combine main's explicit `dagger shell` invocation with beta's `daggerShellAt` helper. `daggerShellAt` now starts from `dagger shell` and appends `-m <path>` when needed, while `daggerShellNoMod` uses `dagger shell -M`.

```diff
diff --git a/core/integration/shell_test.go b/core/integration/shell_test.go
@@ -37,18 +37,18 @@ func daggerShell(script string) dagger.WithContainerFunc {

 func daggerShellAt(modPath, script string) dagger.WithContainerFunc {
 	return func(c *dagger.Container) *dagger.Container {
-		execArgs := []string{"dagger"}
+		execArgs := []string{"dagger", "shell"}
 		if modPath != "" {
 			execArgs = append(execArgs, "-m", modPath)
 		}
 		return c.WithExec(execArgs, dagger.ContainerWithExecOpts{
 			Stdin:                         script,
 			ExperimentalPrivilegedNesting: true,
 		})
 	}
 }

 func daggerShellNoMod(script string) dagger.WithContainerFunc {
 	return func(c *dagger.Container) *dagger.Container {
-		return c.WithExec([]string{"dagger", "-M"}, dagger.ContainerWithExecOpts{
+		return c.WithExec([]string{"dagger", "shell", "-M"}, dagger.ContainerWithExecOpts{
 			Stdin:                         script,
 			ExperimentalPrivilegedNesting: true,
 		})
 	}
 }
```

3. Deleted container cookbook page vs volatile variable docs

Original conflict: beta deleted the old cookbook page in the docs restructure; main added volatile variable guidance there.

```diff
diff --git a/docs/current_docs/cookbook/containers.mdx b/docs/current_docs/cookbook/containers.mdx
index 4bf6e79..b97d036 100644
--- a/docs/current_docs/cookbook/containers.mdx
+++ b/docs/current_docs/cookbook/containers.mdx
@@ -18,3 +18,24 @@ Dagger allows you to build, publish, and export container images, also known as
 <ExportContainerImageToHost />

 <SetEnvVar />
+
+## Use volatile variables for exec-time metadata
+
+`withVolatileVariable` sets a non-secret environment variable for future `withExec` calls without invalidating exec cache when only the variable's value changes.
+
+Typical examples include CI and reporting metadata such as:
+- commit SHA
+- branch or ref
+- CI run ID
+
+:::warning
+`withVolatileVariable` is an expert-only escape hatch. Use it only when you are certain that changing the variable alone must not invalidate cached `withExec` results. If that assumption is wrong, Dagger may reuse stale or incorrect cached results.
+:::
```

Resolution: keep the cookbook deletion and move the content to the beta Container type page, which now owns Container behavior docs.

```diff
diff --git a/docs/current_docs/extending/types/container.mdx b/docs/current_docs/extending/types/container.mdx
@@ -60,3 +60,30 @@ The default address can be any valid container image reference, such as:
 - `alpine:3.19` - Docker Hub image with specific version
 - `ghcr.io/owner/image:tag` - GitHub Container Registry image
 - `gcr.io/project/image:tag` - Google Container Registry image
+
+## Volatile variables
+
+`withVolatileVariable` sets a non-secret environment variable for future
+`withExec` calls without invalidating exec cache when only the variable's value
+changes.
+
+Typical examples include CI and reporting metadata such as commit SHAs, branch
+or ref names, and CI run IDs.
+
+:::warning
+`withVolatileVariable` is an expert-only escape hatch. Use it only when you are
+certain that changing the variable alone must not invalidate cached `withExec`
+results. If that assumption is wrong, Dagger may reuse stale or incorrect
+cached results.
+:::
```

4. Deleted function-caching page vs volatile variable cache note

Original conflict: beta deleted the old function caching module page; main added a cache note there.

```diff
diff --git a/docs/current_docs/extending/modules/function-caching.mdx b/docs/current_docs/extending/modules/function-caching.mdx
index 707c1a3..6622233 100644
--- a/docs/current_docs/extending/modules/function-caching.mdx
+++ b/docs/current_docs/extending/modules/function-caching.mdx
@@ -252,6 +252,8 @@ This means:
 If you need a specific step to always re-run, add a cache-busting input to that step (for example, a
 timestamp environment variable used only for that operation).

+If you need non-secret metadata to be visible to a `withExec` step without invalidating cache when only that metadata changes, use `withVolatileVariable` on the `Container`. This is an expert-only escape hatch: cached `withExec` results may be reused even when the volatile value changes, and reruns caused by other inputs will see the latest volatile value. See the [container cookbook](../../cookbook/containers.mdx#use-volatile-variables-for-exec-time-metadata).
+
 ### Secrets and caching
```

Resolution: keep the page deletion and move the cache behavior note to beta's new cache explainer, with a link to the new Container section.

```diff
diff --git a/docs/current_docs/extending/how-dagger-works/cache.mdx b/docs/current_docs/extending/how-dagger-works/cache.mdx
@@ -14,6 +14,20 @@ Different inputs: Dagger reruns the affected work.

 This is why module API design affects speed.

+## Function Cache Hits
+
+A function cache hit skips the function entirely, so none of its internal steps
+run. A cache miss runs the function, but individual container/file steps inside
+it may still be cache hits if their inputs are unchanged.
+
+If you need a specific step to always re-run, add a cache-busting input to that
+step. If you need non-secret metadata to be visible to a `withExec` step without
+invalidating cache when only that metadata changes, use
+`withVolatileVariable` on the `Container`. Cached `withExec` results may be
+reused even when the volatile value changes, and reruns caused by other inputs
+will see the latest volatile value. See
+[Container volatile variables](../types/container.mdx#volatile-variables).
+
 ## Inputs Matter
```

5. Dang dependency version

Original conflict: beta had an earlier Dang pseudo-version; main had a newer one.

```diff
diff --cc go.mod
@@@ -152,7 -151,7 +152,11 @@@ require
  	github.com/urfave/cli v1.22.17
  	github.com/vektah/gqlparser/v2 v2.5.32
  	github.com/vito/bubbline v0.0.0-20250312195236-5f4f49d6ebcb
++<<<<<<< HEAD
 +	github.com/vito/dang v0.0.0-20260527191113-ad5bca2669a9
++=======
+	github.com/vito/dang v0.0.0-20260602175442-56ec0c007a23
++>>>>>>> origin/main
  	github.com/vito/go-interact v1.0.2
```

Resolution: take main's newer Dang because the merged `core/sdk/dang_helpers.go` uses the newer `dang.FieldDecl` API; go.sum follows the same version choice.

```diff
diff --git a/go.mod b/go.mod
@@ -152,7 +152,7 @@ require (
 	github.com/urfave/cli v1.22.17
 	github.com/vektah/gqlparser/v2 v2.5.32
 	github.com/vito/bubbline v0.0.0-20250312195236-5f4f49d6ebcb
-	github.com/vito/dang v0.0.0-20260527191113-ad5bca2669a9
+	github.com/vito/dang v0.0.0-20260602175442-56ec0c007a23
 	github.com/vito/go-interact v1.0.2
```

6. Generated ConfigSchema client comments

Original conflict: repeated in the generated engine-dev/dagger-engine clients. Beta listed the new workspace schema files; main kept the old list but shifted the source line.

```diff
diff --cc modules/dev/internal/dagger/engine-dev.gen.go
@@@ -278,8 -277,8 +277,13 @@@ func (r *EngineDev) ClientDockerConfig(
  }

  // Generate the json schema for a dagger config file
++<<<<<<< HEAD
 +// 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:359:1)
++=======
+ // Currently supported: "dagger.json", "engine.json"
+ func (r *EngineDev) ConfigSchema(filename string) *File { // engine-dev (../../../../toolchains/engine-dev/main.go:362:1)
++>>>>>>> origin/main
```

Resolution: keep beta's expanded schema filename list and main's shifted line number, matching the merged source at `toolchains/engine-dev/main.go:362`.

```diff
diff --git a/modules/dev/internal/dagger/engine-dev.gen.go b/modules/dev/internal/dagger/engine-dev.gen.go
@@ -278,8 +278,8 @@ func (r *EngineDev) ClientDockerConfig() *Secret {
 }

 // 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:359:1)
+// 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)
```

7. Helper removed by beta split but referenced by merged main test

Original conflict effect: main's engine persistence test now used the helper from lockfile tests, while beta removed that helper with the lockfile split.

```diff
diff --git a/core/integration/engine_persistence_test.go b/core/integration/engine_persistence_test.go
@@ -1127,6 +1127,7 @@ git -C /root/srv/repo.git update-server-info
 		hostname := identity.NewID() + ".test"
 		gitSvc, repoBaseURL := gitSmartHTTPServiceDirAuth(ctx, t, c, hostname, gitDir, "", nil)
 		repoURL := repoBaseURL + "/repo.git"
+		gitHost := moduleResolveServiceHost(t, repoURL)
```

Resolution: add the small URL host helper beside the test that now needs it, without restoring the removed lockfile helper section.

```diff
diff --git a/core/integration/engine_persistence_test.go b/core/integration/engine_persistence_test.go
@@ -11,6 +11,7 @@ import (
 	"context"
 	"crypto/rand"
 	"fmt"
+	"net/url"
 	"os"
@@ -25,6 +26,17 @@ import (
 	"dagger.io/dagger"
 )

+func moduleResolveServiceHost(t *testctx.T, rawURL string) string {
+	t.Helper()
+	parsed, err := url.Parse(rawURL)
+	require.NoError(t, err)
+	host := parsed.Hostname()
+	require.NotEmpty(t, host)
+	return host
+}
+
 func (CachePersistenceSuite) TestDiskPersistenceAcrossRestart(ctx context.Context, t *testctx.T) {
```

CI follow-up: release publish dry-run in cache persistence now loads the synthetic release repo as a workspace with `-W "$MODULE_REF"` instead of as an extra module with `-m "$MODULE_REF"`. The synthetic root still uses workspace-only toolchains, so this matches the CLI migration path while preserving the dry-run assertions.

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

Signed-off-by: Solomon Hykes <[email protected]>
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta branch from 21d7099 to e45e7e4 Compare June 4, 2026 23:29
@tiborvass
tiborvass marked this pull request as ready for review June 4, 2026 23:32
@tiborvass
tiborvass merged commit fd0021b into 1.0-beta Jun 4, 2026
79 of 80 checks passed
@tiborvass
tiborvass deleted the codex/merge-main-into-1.0-beta branch June 4, 2026 23:51
@tiborvass tiborvass changed the title Merge main into 1.0-beta Merge main (15884210ff) into 1.0-beta Jun 5, 2026
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]>
@tiborvass tiborvass changed the title Merge main (15884210ff) into 1.0-beta [1.0-beta] Merge main (15884210ff) into 1.0-beta Jun 5, 2026
tiborvass added a commit that referenced this pull request Jun 5, 2026
…ash in fd0021b

This merge commit restores the history link between 1.0-beta branch and main.
It was lost with merge commit fd0021b which
squashed the branch e45e7e4

Git tree on #13327 before squash-merging into 1.0-beta:

```
* e45e7e4 Run dagger generate
*   a01677a Merge main into 1.0-beta
|\
| * 1588421 chore: update daggerverse from 0.21.0 to 0.21.4 (#13328)
| * 20b2554 Simplify function call return handling (#13319)
| * 316ca15 Fix snapshot owner lease attach/remove race (#13321)
| * 6cfdcb4 fix(layercopy): follow source symlinks when copying directory contents (#13326)
| * 16e85ca Container exists expand option (#13310)
| * 54f9811 chore: post-release during v0.21.4 (#13316)
| * de85595 ci: bump default engine version to v0.21.3 (#13315)
| * 81bb907 chore: prep for v0.21.4 (#13314)
| * 0fd148e Show root usage when dagger has no args
| * 219b696 Volatile vars (#13223)
| * fae340c fix(layercopy): materialize resolved parent dirs when writing through… (#13308)
| * b720144 bump dang (#13306)
| * 41a7910 fix(engine): lease parent layer content for tarball export (#13307)
| * b2d43ba fix(core): attach never-cached module function results (#13298)
| * 6a7b3a7 fix incorrect artifact caching issue when releasing  (#13285)
| * 2452472 fix(core/dotenv): accept `export`-prefixed lines in .env files (#13293)
| * 24b06e7 fix: allow empty setSecret name (#13304)
| * f7ea195 fix: handle 1Password secrets with spaces (#13297)
* | 74e1a66 another pass on docs (#13325)
...
|/
* 8cc840f fix(sdk/typescript): resolve referenced values in decorator arguments (#13292)
```

Ran `git merge -s ours 1588421` on 1.0-beta to get this desired git tree:

```
*   ??gitsha?? [1.0-beta] restore merge history with main@15884210ff lost due to squash in fd0021b
|\
| * 1588421 chore: update daggerverse from 0.21.0 to 0.21.4 (#13328)
| ...
* | 94ebacb (origin/1.0-beta) update sdk docs, type-system docs, and interfaces (#13338)
* | 64eba3f (tag: v1.0.0-beta.3) [1.0-beta] feat: support synthetic workspaces (#13217)
* | fd0021b Merge main into 1.0-beta (#13327)
* | c6dd435 fix(cli): refine cloud check replay
```
tiborvass added a commit that referenced this pull request Jun 6, 2026
…ash in fd0021b

This merge commit restores the history link between 1.0-beta branch and main.
It was lost with merge commit fd0021b which
squashed the branch e45e7e4

Git tree on #13327 before squash-merging into 1.0-beta:

```
* e45e7e4 Run dagger generate
*   a01677a Merge main into 1.0-beta
|\
| * 1588421 chore: update daggerverse from 0.21.0 to 0.21.4 (#13328)
| * 20b2554 Simplify function call return handling (#13319)
| * 316ca15 Fix snapshot owner lease attach/remove race (#13321)
| * 6cfdcb4 fix(layercopy): follow source symlinks when copying directory contents (#13326)
| * 16e85ca Container exists expand option (#13310)
| * 54f9811 chore: post-release during v0.21.4 (#13316)
| * de85595 ci: bump default engine version to v0.21.3 (#13315)
| * 81bb907 chore: prep for v0.21.4 (#13314)
| * 0fd148e Show root usage when dagger has no args
| * 219b696 Volatile vars (#13223)
| * fae340c fix(layercopy): materialize resolved parent dirs when writing through… (#13308)
| * b720144 bump dang (#13306)
| * 41a7910 fix(engine): lease parent layer content for tarball export (#13307)
| * b2d43ba fix(core): attach never-cached module function results (#13298)
| * 6a7b3a7 fix incorrect artifact caching issue when releasing  (#13285)
| * 2452472 fix(core/dotenv): accept `export`-prefixed lines in .env files (#13293)
| * 24b06e7 fix: allow empty setSecret name (#13304)
| * f7ea195 fix: handle 1Password secrets with spaces (#13297)
* | 74e1a66 another pass on docs (#13325)
...
|/
* 8cc840f fix(sdk/typescript): resolve referenced values in decorator arguments (#13292)
```

Ran `git merge -s ours 1588421` on 1.0-beta to get this desired git tree:

```
*   ??gitsha?? [1.0-beta] restore merge history with main@15884210ff lost due to squash in fd0021b
|\
| * 1588421 chore: update daggerverse from 0.21.0 to 0.21.4 (#13328)
| ...
* | 94ebacb update sdk docs, type-system docs, and interfaces (#13338)
* | 64eba3f [1.0-beta] feat: support synthetic workspaces (#13217)
* | fd0021b Merge main into 1.0-beta (#13327)
* | c6dd435 fix(cli): refine cloud check replay
* | 74e1a66 another pass on docs (#13325)
```
@tiborvass

Copy link
Copy Markdown
Contributor

For posterity, this shouldn't have been squash-merged but merged with a regular merge commit. I direct pushed a fix to the 1.0-beta branch here: 340ec96edb

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.

7 participants