-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
A-edition-nextArea: may require a breaking change over an editionArea: may require a breaking change over an editionA-manifestArea: Cargo.toml issuesArea: Cargo.toml issuesC-enhancementCategory: enhancementCategory: enhancementCommand-packageCommand-publishS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Description
Currently cargo package follows the following rules:
If
includeis not specified, then the following files will be excluded:
- If the package is not in a git repository, all “hidden” files starting with a dot will be skipped.
- If the package is in a git repository, any files that are ignored by the gitignore rules of the repository and global git configuration will be skipped.
This handling is arguably inconsistent and results in surprising behavior such as inclusion of .github/ folder for one-crate repositories (e.g. see here).
I suggest to remove the git exception and always exclude dotfiles which are not listed in the include field.
Previous IRLO discussion: https://internals.rust-lang.org/t/23700
kpreid and Ltrlg
Metadata
Metadata
Assignees
Labels
A-edition-nextArea: may require a breaking change over an editionArea: may require a breaking change over an editionA-manifestArea: Cargo.toml issuesArea: Cargo.toml issuesC-enhancementCategory: enhancementCategory: enhancementCommand-packageCommand-publishS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Type
Projects
Status
No status