-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-gitArea: anything dealing with gitArea: anything dealing with gitC-bugCategory: bugCategory: bugCommand-package
Description
Problem
Running cargo publish
/cargo package
on a crate in a sub-directory cargo errors because of uncommitted files despite the files being .gitignored. It does not matter if the file is gitignored at the top-level or in the crate's own directory.
Steps
- Create a directory structure as
.git/
.gitignore
crate/
.gitignore
Cargo.toml
test.bak
# etc
Where .gitignore contains
*.bak
**/*.bak
or any combination thereof
- Run
(cd crate && cargo package)
Notes
Current workaround is to do git clean -fxd
before releasing (which clears a bit to much).
cargo --version --verbose
cargo 1.31.0-nightly (5dbac9888 2018-10-08)
release: 1.31.0
commit-hash: 5dbac98885199bbd7c0f189d7405b5523434d1e3
commit-date: 2018-10-08
makoConstruct and colbyn
Metadata
Metadata
Assignees
Labels
A-gitArea: anything dealing with gitArea: anything dealing with gitC-bugCategory: bugCategory: bugCommand-package