Skip to content

Merge main (efbe16d72) into 1.0-beta - #13340

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

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

Conversation

@dagger-codex

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

Copy link
Copy Markdown
Contributor

Merge main (efbe16d) into 1.0-beta

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

dagger-codex Bot and others added 16 commits June 5, 2026 00:55
Keep current docs mounted at the root while enabling Docusaurus version metadata. Convert docs-content imports and same-site links to version-safe relative paths so future snapshots do not depend on current docs content.

Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
Bump the Dang SDK to pull in its interface-conformance fix. A Dang type
that `implements` an interface defined by a dependency module was wrongly
required to provide the `id: ID!` field that Dagger synthesizes on every
interface, so such modules failed to load (e.g. `dagger call fn list`).

The bump also adapts core/sdk to Dang's renamed public API (class ->
object, ModuleValue -> Object, and the value/type scope types).

Adds an integration test covering interface definition and consumption
both within a module and across a dependency boundary.

Signed-off-by: Alex Suraci <[email protected]>
@dagger-codex
dagger-codex Bot requested a review from a team as a code owner June 5, 2026 20:26
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta-20260605 branch from 3df7a9f to 09f7517 Compare June 5, 2026 21:24
@dagger-codex dagger-codex Bot changed the title Merge main into 1.0-beta Merge 62b1c2655 into 1.0-beta Jun 5, 2026
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta-20260605 branch from 09f7517 to dd5d49f Compare June 5, 2026 21:28
@dagger-codex dagger-codex Bot changed the title Merge 62b1c2655 into 1.0-beta Merge main (62b1c2655) into 1.0-beta Jun 5, 2026
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta-20260605 branch 2 times, most recently from ac78864 to 5f6f7f0 Compare June 5, 2026 22:37
dagger-codex Bot and others added 2 commits June 5, 2026 16:44
* test: cover registry manifest metadata reuse

Add an integration test with a counting OCI registry that serves a small tagged image and records manifest/config fetches. The test runs two sequential sessions against one nested engine and asserts that tag revalidation uses HEADs while manifest/config metadata is downloaded only once.

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

* fix: cache registry image metadata

Store resolved image manifests and configs in the engine content store during default registry resolution. This lets canonical config resolution and later pulls reuse metadata after tag revalidation instead of issuing repeated manifest and config GETs.

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

* test: cover registry tag updates with metadata cache

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

---------

Signed-off-by: Solomon Hykes <[email protected]>
Co-authored-by: Solomon Hykes <[email protected]>
@dagger-codex dagger-codex Bot changed the title Merge main (62b1c2655) into 1.0-beta Merge main (f14ac5fc4) into 1.0-beta Jun 6, 2026
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta-20260605 branch from 5f6f7f0 to 17cf675 Compare June 6, 2026 02:20
* docs: make internal links relocatable

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

* docs: promote 1.0 beta docs to current

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

* docs: remove 1.0 beta from version selector

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

* chore: regenerate

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

---------

Signed-off-by: Solomon Hykes <[email protected]>
Signed-off-by: Tibor Vass <[email protected]>
Co-authored-by: Tibor Vass <[email protected]>
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta-20260605 branch from 17cf675 to 0c1a2b1 Compare June 6, 2026 06:19
@dagger-codex dagger-codex Bot changed the title Merge main (f14ac5fc4) into 1.0-beta Merge main (efbe16d72) into 1.0-beta Jun 6, 2026
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta-20260605 branch from 0c1a2b1 to a09b716 Compare June 8, 2026 18:37
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]>
@dagger-codex
dagger-codex Bot force-pushed the codex/merge-main-into-1.0-beta-20260605 branch from a09b716 to 50a9280 Compare June 8, 2026 19:08
@tiborvass
tiborvass merged commit fd4277f into 1.0-beta Jun 8, 2026
75 of 76 checks passed
@tiborvass
tiborvass deleted the codex/merge-main-into-1.0-beta-20260605 branch June 8, 2026 20:34
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.

4 participants