-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
cargo/src/cargo/sources/path.rs
Lines 110 to 121 in 070e459
| let no_include_option = pkg.manifest().include().is_empty(); | |
| let git_repo = if no_include_option { | |
| self.discover_git_repo(root)? | |
| } else { | |
| None | |
| }; | |
| let mut exclude_builder = GitignoreBuilder::new(root); | |
| if no_include_option && git_repo.is_none() { | |
| // no include option and not git repo discovered (see rust-lang/cargo#7183). | |
| exclude_builder.add_line(None, ".*")?; | |
| } |
The denoland/rusty_v8 crate has a .gn file that is included by saying:
exclude = [
...
".*",
...
"!.gn"
]
This excludes all dotfiles except .gn, but when this crate is vendored into a project, the .gn file is missing. Given that this is legal syntax, it seems the path.rs logic above needs to handle this situation?
Metadata
Metadata
Assignees
Labels
No labels