Skip to content

Cargo should warn when workspace "exclude" does not match anything #17089

Description

@matthiasbeyer

Problem

I just found that a workspace configuration with

[workspace]
members = ["crates/*"]
exclude = ["crates/excluded"]

Does not warn when excluded does not exist.

Proposed Solution

Cargo should warn when a member of the workspace.exclude array does not match anything.

Notes

Had a look at open issues and this seems partially related to #4377 but I did not find any other open issue that explicitly notes what I wrote above. Maybe I missed it of course 😆

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-manifestArea: Cargo.toml issuesA-new-lintArea: new lintC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions