Skip to content

Make module CWD-aware - #36

Merged
shykes merged 2 commits into
mainfrom
cwd-aware
Jul 21, 2026
Merged

shykes merged 2 commits into
mainfrom
cwd-aware

Conversation

@shykes

@shykes shykes commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Replace the workspace-root **/go.mod glob with the polyfill's
findConfigDirs, so module discovery is anchored at the client's working
directory. Trim the modules() docs to the end-user essentials and move
implementation notes into in-body comments.

Context: dagger/dagger#13688

shykes added 2 commits July 20, 2026 20:34
Replace the workspace-root **/go.mod glob with the polyfill's
findConfigDirs, so module discovery is anchored at the client's working
directory. Trim the modules() docs to the end-user essentials and move
implementation notes into in-body comments.

Signed-off-by: Solomon Hykes <[email protected]>
Assert modules() (findConfigDirs) discovers go.mod directories at any
depth — top level, nested inside another module, and several levels deep —
and never invents a module for a directory without a go.mod.

Signed-off-by: Solomon Hykes <[email protected]>
@shykes
shykes merged commit e85fa61 into main Jul 21, 2026
11 checks passed
@marcosnils
marcosnils deleted the cwd-aware branch July 30, 2026 18:45
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.

1 participant