Repository navigation
Closed
Milestone
Description
Problem
There is no convention for how modules discover config directories in the workspace, and in particular how the client's CWD affects the result. We should standardize this across all official modules: consistent behavior, CWD used for filtering (act on the project you're in, like go/npm/cargo), and a clear example for community developers.
Solution
One reusable Dang function. Both walks anchor at the client's CWD (.), never the workspace root — so discovery lives in exactly one place and every module's entry point collapses to a call to it. Later we could upstream it as a core Workspace method.
Implemented in github.com/dagger/polyfill
Checklist
SDKs
- dagger/go-sdk -> module now respects cwd go-sdk#11
- dagger/python-sdk -> feat: make Python module discovery cwd-aware python-sdk#9
- dagger/typescript-sdk -> feat: make module discovery cwd-aware typescript-sdk#11
- dagger/java-sdk -> Make module discovery cwd-aware and resolve dagger-module.toml java-sdk#8
- dagger/php-sdk -> feat: make PHP module discovery cwd-aware php-sdk#1
- dagger/dang-sdk -> feat: make module discovery cwd-aware dang-sdk#8
- dagger/sdk-sdk -> @TomChv: we not gonna do it since a sdk module is always at the root of its repo.
Language toolchains
- dagger/go -> Make module CWD-aware go#36
-
dagger/node-> this one is currently strictly a dependency and does not need cwd awareness - dagger/deno -> feat: generalize config-dir discovery into reusable findConfigDirs deno#4
- dagger/bun -> Already in feat: add bun module bun#1
Tooling modules
- dagger/docker -> make docker discovery cwd-aware docker#1
- dagger/helm -> Document cwd-aware behavior helm#2
- dagger/playwright -> Make project discovery and test execution cwd-aware playwright#1
- dagger/shellcheck -> Document cwd-aware behavior shellcheck#2
Linters / formatters
- dagger/biomejs -> Make lint and fix cwd-aware biomejs#2
- dagger/eslint -> Make lint and fix cwd-aware eslint#12
- dagger/prettier -> Make check and write cwd-aware prettier#13
- dagger/ruff -> feat: make Ruff discovery cwd-aware ruff#1
- dagger/PsScriptAnalyzer -> Document cwd-aware behavior and set up the workspace config PsScriptAnalyzer#2
Test frameworks
- dagger/jest -> feat: make Jest discovery cwd-aware jest#28
- dagger/mochajs -> feat: add Mocha Dagger toolchain and e2e checks mochajs#1
- dagger/vitest -> feat: make Vitest discovery cwd-aware vitest#17
- dagger/pytest -> feat: make Pytest discovery cwd-aware pytest#19
Metadata
Metadata
Assignees
Labels
No labels
Activity
[-]standardize how official modules find config dirs[/-][+]Standardize how official modules find config dirs (cwd-aware)[/+]test: verify cwd-aware discovery; bump engine to beta.7
feat: align project discovery with dagger/dagger#13688
feat: add bun Dagger module
feat: add bun Dagger module
feat: add bun Dagger module
feat: add bun Dagger module
feat: standardize cwd-aware module discovery (both config formats)
feat: use polyfill's findConfigDirs instead of a local copy
feat: use polyfill's findConfigDirs instead of a local copy
TomChv commentedon Jul 20, 2026
With dagger/polyfill#1 merged, we can use
workspace.findConfigDirfor our modulesfeat: cwd-aware config-dir discovery via polyfill's findConfigDirs
feat: add bun Dagger module
10 remaining items
feat: make Vitest discovery cwd-aware
feat: make Vitest discovery cwd-aware (#17)
feat: make Jest discovery cwd-aware (#28)
make module discovery cwd-aware and resolve dagger-module.toml
make module discovery cwd-aware and resolve dagger-module.toml
Make Dang module discovery cwd-aware and dagger-module.toml-aware
feat: add Mocha Dagger toolchain and e2e checks (#1)
make module discovery cwd-aware and resolve dagger-module.toml
Make module discovery cwd-aware and resolve dagger-module.toml (#8)
core(schema): add Workspace.findConfigDirs
feat(checks): cover local path dependency chains
core(schema): add Workspace.findConfigDirs
core(schema): add Workspace.findConfigDirs
core(schema): add Workspace.findConfigDirs