Skip to content

Warn when a literal workspace member has no manifest - #98

Merged
andrew merged 2 commits into
mainfrom
workspace-missing-member-warning
Sep 16, 2026
Merged

andrew merged 2 commits into
mainfrom
workspace-missing-member-warning

Conversation

@andrew

@andrew andrew commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

A go.work use entry (or Cargo/npm/pnpm workspace member) that names a directory with no manifest was dropped silently, so callers building a release order from the discovered set got an incomplete graph with no signal.

Emit a warning naming the workspace file, the member pattern as written, and the manifest it lacked. Wildcard patterns that expand to nothing stay silent since an empty match there can be intentional.

Fixes #97

A go.work use entry (or Cargo/npm/pnpm workspace member) that names a
directory with no manifest was dropped silently, so callers building a
release order from the discovered set got an incomplete graph with no
signal. Emit a warning naming the workspace file, the member pattern
as written, and the manifest it lacked. Wildcard patterns that expand
to nothing stay silent.

Fixes #97

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

A literal include also covered by an exclude pattern warned even
though the workspace configuration removed it; match the literal
against the exclude patterns before warning.

normalizeRepositoryPath rejected /-prefixed and ../ paths but let a
Windows drive-absolute entry (C:\src\svc) through, so it globbed to
nothing under the reader root and produced a "has no go.mod" warning
for a path outside the repository. Reject drive-letter volumes the
same way as other absolute paths.
@andrew
andrew merged commit 1a43d8a into main Sep 16, 2026
5 checks passed
@andrew
andrew deleted the workspace-missing-member-warning branch September 16, 2026 07:09
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.

DiscoverManifests: no warning when a go.work use entry matches nothing

2 participants