Conversation
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @epage (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
|
This is currently a proof of concept, meant as a starting point for discussing how to implement it properly. The easy approach is to just make sure that the gitignore file exists whenever the target directory path is determined. |
|
Note that #11548 is not labeled with |
|
makes sense! |
174d845 to
42a9f08
Compare
|
I removed the part dealing with |
|
I love this idea. |
42a9f08 to
46ac2e9
Compare
This comment has been minimized.
This comment has been minimized.
56eb115 to
896a349
Compare
|
Note that I changed the implementation here. I previously created the After poking around in the cargo code a little more, I discovered So, I simply added my code as an additional step in that function. I hope this should be correct and maintainable. |
896a349 to
ebd1569
Compare
ebd1569 to
d5667bd
Compare
This comment has been minimized.
This comment has been minimized.
d5667bd to
f11b336
Compare
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
f11b336 to
b945559
Compare
Fixes #15061
How to test:
cargo new, observer that no.gitignoreis generatedcargo build, observe that git still ignores the target directorycargo buildwith different ways to override the default target directory location:--target-dir)CARGO_TARGET_DIR).cargo/config.toml:build.target-dir