Skip to content

Remove the polyfill dependency - #20

Merged
eunomie merged 1 commit into
dagger:mainfrom
grouville:polyfill-removal
Aug 25, 2026
Merged

eunomie merged 1 commit into
dagger:mainfrom
grouville:polyfill-removal

Conversation

@grouville

@grouville grouville commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

Pytest no longer needs dagger/polyfill for project discovery.

Workspace.findRoots now provides the intended policy directly: find projects below the current directory, or the nearest enclosing project when Dagger starts inside one. The Pytest execution path is unchanged.

The marker set (pytest.ini, pyproject.toml, tox.ini, setup.cfg) and the vendored-tree exclusions are this module's own policy rather than the engine's, so discoveryCheck now pins the exclusions as well as the cwd-relative shape, and docs/cwd-aware-discovery.md names the native API instead of the polyfill.

engineVersion moves to v1.0.0-beta.10, the first release that ships findRoots.

Test

dagger check 'pytest:*'

Verified against a v1.0.0-beta.10 engine and CLI. The vendored-tree assertion was checked against its negative: dropping the exclude argument makes discoveryCheck fail with .., app/.venv, app.

Workspace.findRoots landed in dagger/dagger#13854 and is available from v1.0.0-beta.10 onward.

@grouville grouville changed the title Drop the polyfill for the engine's findConfigDirs Remove the polyfill dependency Aug 13, 2026
Pytest used dagger/polyfill to find every marked project below the current directory plus the nearest enclosing project.

Workspace.findRoots now provides that policy directly. Switch discovery to the native API, remove the polyfill dependency, and bump the engine requirement to v1.0.0-beta.10, the first release that ships findRoots.

The marker set and the vendored-tree exclusions are this module's own policy rather than the engine's, so discoveryCheck now pins the exclusions too, and the discovery doc names the native API instead of the polyfill.

Signed-off-by: Guillaume de Rouville <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
@eunomie
eunomie marked this pull request as ready for review August 25, 2026 09:48
@eunomie
eunomie merged commit aa40469 into dagger:main Aug 25, 2026
4 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