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.