Repository navigation
Drop the polyfill for the engine's findRoots - #3
Merged
Merged
Conversation
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
marked this pull request as ready for review
August 26, 2026 11:27
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
self-requested a review
August 26, 2026 13:17
TomChv
approved these changes
Aug 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Bun module currently uses
dagger/polyfillto findpackage.jsonprojects 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 vendorednode_modulestrees.Workspace.findRoots— shipped inv1.0.0-beta.10via 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 provisionalfindConfigDirsthis PR was first written against, so the call site, the doc comments, anddesign/bun-module.mduse the shipped name.The
engineVersionbump 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/e2emoves tov1.0.0-beta.10for the same reason, and refreshingdagger.lockpicks up the polyfill-freedang-sdk(which itself requires beta.10). Nothing in the tree referencesgithub.com/dagger/polyfillany more.Test
dagger --x-release=v1.0.0-beta.10 checkAll 12 checks pass, including nested workspaces, cwd-scoped discovery, compilation, bundles, binary installation, and expected failures.