Skip to content

Remove the polyfill dependency - #3

Merged
eunomie merged 4 commits into
dagger:mainfrom
eunomie:ruff-pr-2-polyfill-removal-rework-lead-f08c8eaa
Aug 25, 2026
Merged

eunomie merged 4 commits into
dagger:mainfrom
eunomie:ruff-pr-2-polyfill-removal-rework-lead-f08c8eaa

Conversation

@eunomie

@eunomie eunomie commented Aug 25, 2026

Copy link
Copy Markdown
Member

Supersedes #2, which could not be updated in place (its head branch lives on a fork without push access).

projects(ws) used github.com/dagger/polyfill to find every marked project below the current directory plus the nearest enclosing one. Workspace.findRoots now provides that policy natively, so this drops the polyfill dependency and bumps the engine requirement to v1.0.0-beta.10.

Also included, from reworking the change against beta.10:

  • docs/cwd-aware-discovery.md still pointed at the polyfill.
  • exclude: had no test coverage — removing the argument left every check green. A .venv marker is now asserted out of the discovery results.
  • dagger.lock is regenerated: beta.10 rewrites it from lockfile v1 (git.head, float strategy) to v2 (git.ref resolved to a concrete sha). Without this every run dirties the tree.

dagger check passes 5/5 against a v1.0.0-beta.10 engine.

grouville and others added 4 commits August 13, 2026 21:50
Ruff 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 in the same change.

Signed-off-by: Guillaume de Rouville <[email protected]>
The polyfill removal switched projects(ws) to Workspace.findRoots but left
the doc pointing at github.com/dagger/polyfill. Point it at the native API
and record the directories the exclude patterns prune.

Signed-off-by: Yves Brissaud <[email protected]>
projects(ws) passes exclude to Workspace.findRoots so vendored trees never
register as Ruff projects, but nothing asserted it: dropping the argument
kept every check green. Assert a .venv marker stays out of the results.

Signed-off-by: Yves Brissaud <[email protected]>
The lock was still lockfile v1, pinning dang-sdk through a git.head entry
with a float strategy. Running against beta.10 rewrites it as a v2 git.ref
entry resolved to a concrete sha, so record that instead of having every
run dirty the tree.

Signed-off-by: Yves Brissaud <[email protected]>
@eunomie
eunomie marked this pull request as ready for review August 25, 2026 15:25
@eunomie
eunomie merged commit 5d3a1a5 into dagger:main Aug 25, 2026
@eunomie
eunomie deleted the ruff-pr-2-polyfill-removal-rework-lead-f08c8eaa branch August 25, 2026 15:26
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