-
Notifications
You must be signed in to change notification settings - Fork 2.6k
CACHEDIR.TAG
not created if rust-analyzer
runs before cargo build
#14281
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
Comments
Backup tools such as restic recognize this. More info: https://bford.info/cachedir/ NB: cargo _should_ create the tag file in the `target/` directory but doesn't if the directory already exists, which happens frequently if rust-analyzer is launched by your IDE before you can type `cargo build`. Hence, create the file manually here. => rust-lang/cargo#14281
Where did you configure Could you give a complete reproducer like
|
Relevant issues: |
Hm, I configured
(Snippet from here: rust-lang/rust-analyzer#6007 (comment) ) So, I guess we can dedupe this into #12441 |
Yeah that seems like a dup. I am going to close this. |
Backup tools such as `tar` and `restic` recognize this. More info: https://bford.info/cachedir/ NB: cargo _should_ create the tag file in the `target/` directory but doesn't if the directory already exists, which happens frequently if rust-analyzer is launched by your IDE before you can type `cargo build`. Hence, create the file manually here. => rust-lang/cargo#14281
Problem
After checking out a Rust/Cargo project from Git, if
rust-analyzer
is run before the firstcargo build
, thetarget/CACHEDIR.TAG
is missingSteps
target
directory excluded from Git.code .
that has rust-analyzer extension installedtarget/analyzer/CACHEDIR.TAG
is createdcargo build
=>cargo build
not creatingtarget/CACHEDIR.TAG
Possible Solution(s)
Revert https://github.com/rust-lang/cargo/pull/13132/filesNotes
I verified that this reproduces on both macOS and Linux.
Version
The text was updated successfully, but these errors were encountered: