-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scan untracked files in git for packaging/deps #1584
Conversation
r? @huonw (rust_highfive has picked a reviewer for you, use r? to override) |
@bors r+ |
📌 Commit a8e9ce2 has been approved by |
☀️ Test successful - cargo-linux-32, cargo-linux-64, cargo-mac-32, cargo-mac-64, cargo-win-32, cargo-win-64 |
Using the today's latest rustc+cargo, I see a lot of junk files in the generated cargo package. Crates.io thankfully refused the upload. Crate was usually 30K to upload, went up to 18M (yeah, I had some untracked junk in my working directory..).
Is that caused by this?
|
Can these be printed in the normal |
And hopefully in |
@bluss yes those extra contents were likely caused by this patch, thanks for opening #1597 as well! @shepmaster this change mirrors the behavior for |
In situations involving security it's better to assume laziness/incompetence/whatever. Especially when this seems like a nuance in Cargo's functionality that most folks won't know in the first place. |
Closes #797
Closes #1575
This is a reopening of #1170 but I see the two closed issues as important enough that this needs to land in some form or another, and I'm more comfortable with always taking into account untracked files than only if there isn't a commit yet.