Skip to content

Drop the polyfill for the engine's findConfigDirs - #2

Closed
grouville wants to merge 2 commits into
dagger:mainfrom
grouville:polyfill-removal
Closed

Drop the polyfill for the engine's findConfigDirs#2
grouville wants to merge 2 commits into
dagger:mainfrom
grouville:polyfill-removal

Conversation

@grouville

@grouville grouville commented Aug 7, 2026

Copy link
Copy Markdown
Member

The Docker module uses dagger/polyfill to find Dockerfile and Compose projects around the directory where Dagger was started. The native Workspace.findConfigDirs API in dagger/dagger#13854 preserves that behavior: projects below the current directory are included, or the nearest enclosing project is selected when running inside one.

That discovery replacement is the purpose of this PR. It also updates the stale local ./proxy dependency to the workspace's dagger/proxy module so the repository can regenerate cleanly.

No Docker build or Compose behavior is intended to change. Reviewers only need to check the discovery call, the proxy reference, and the generated diff.

Test

dagger check

The repository check passes against the development engine. The provisional engine version will be updated when #13854 is released.

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.

This module was still pinned to v0.20.6 and used the legacy
Workspace.path field, which the v1 view removed — so the version bump
also ports the relative-path helper onto Workspace.cwd, the v1
spelling of the same value.

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 <guillaume@dagger.io>
@eunomie

eunomie commented Aug 25, 2026

Copy link
Copy Markdown
Member

Superseded by #3 — the native discovery API is Workspace.findRoots, not findConfigDirs (which no engine has); reworked and verified against v1.0.0-beta.10. #3

@eunomie eunomie closed this Aug 25, 2026
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