Skip to content

Drop the polyfill for the engine's findRoots - #3

Merged
TomChv merged 2 commits into
dagger:mainfrom
grouville:polyfill-removal
Aug 26, 2026
Merged

TomChv merged 2 commits into
dagger:mainfrom
grouville:polyfill-removal

Conversation

@grouville

@grouville grouville commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

The Bun module currently uses dagger/polyfill to find package.json projects around the directory where Dagger was started. It must include projects below that directory, find the nearest enclosing project when running inside one, and avoid walking vendored node_modules trees.

Workspace.findRoots — shipped in v1.0.0-beta.10 via dagger/dagger#13854 — supports those rules directly, including the exclusion glob. This PR swaps the discovery call and removes the polyfill; compilation, bundles, and installs are unchanged.

The binding landed as findRoots(markers:, exclude:), not the provisional findConfigDirs this PR was first written against, so the call site, the doc comments, and design/bun-module.md use the shipped name.

The engineVersion bump and the dependency removal land together — the version gate is what keeps the engine's new changeset behavior scoped to migrated modules. The e2e module in .dagger/modules/e2e moves to v1.0.0-beta.10 for the same reason, and refreshing dagger.lock picks up the polyfill-free dang-sdk (which itself requires beta.10). Nothing in the tree references github.com/dagger/polyfill any more.

Test

dagger --x-release=v1.0.0-beta.10 check

All 12 checks pass, including nested workspaces, cwd-scoped discovery, compilation, bundles, binary installation, and expected failures.

The engine now ships Workspace.findConfigDirs (dagger/dagger#13769):
the same cwd-aware project discovery this module got from
github.com/dagger/polyfill — same semantics, ported from the
polyfill's own design and test matrix. Swap the call, drop the
dependency, and require the engine release that ships it.

The engineVersion bump and the dependency removal have to land
together: the version gate is what keeps the engine's new changeset
behavior scoped to migrated modules.

Signed-off-by: Guillaume de Rouville <[email protected]>
The discovery binding landed as Workspace.findRoots(markers:, exclude:),
not the provisional findConfigDirs the previous commit targeted, so the
call, the docs, and the design note move to the shipped name.

v1.0.0-beta.10 is now a real tag, so the e2e module moves onto it too —
its engineVersion gates the same changeset behavior as the root module's,
and the two must agree. Refreshing dagger.lock picks up the polyfill-free
dang-sdk (which itself requires beta.10), so nothing in the tree pulls
github.com/dagger/polyfill any more.

dagger check: 12/12.

Signed-off-by: Tom Chauveau <[email protected]>
@TomChv TomChv changed the title Drop the polyfill for the engine's findConfigDirs Drop the polyfill for the engine's findRoots Aug 26, 2026
@TomChv
TomChv marked this pull request as ready for review August 26, 2026 11:27
@TomChv

TomChv commented Aug 26, 2026

Copy link
Copy Markdown
Member

The tests are green locally but are not run by cloud check, there might be an infra issue: https://dagger.cloud/Quartz/traces/5e319a70652b7b428aa92e7ad470186d#3b8abaa55907484e

@TomChv
TomChv self-requested a review August 26, 2026 13:17
@TomChv
TomChv merged commit ce5860f into dagger:main Aug 26, 2026
13 checks passed
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.

2 participants