GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — [1.0-beta] Merge main (15884210ff) into 1.0-beta by dagger-codex[bot] · Pull Request #13327 · dagger/dagger Conversation
|
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
3f18363 to
c1ec35b
Compare
* 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]>
2d04006 to
e039948
Compare
45e37df to
daae200
Compare
Signed-off-by: Tibor Vass <[email protected]>
daae200 to
21d7099
Compare
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]>
21d7099 to
e45e7e4
Compare
There was an error while loading. Please reload this page.
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]>
…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 ```
…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) ```
|
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.