-
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
warning: File system loop found: xxx
printed when running cargo run
on file not ever needed by cargo
#12600
Comments
Hmm… I don't know how 1.71.0 and 1.72.0 differ. |
For background, the message is coming from the |
IMO symlinks pointing to ancestor directories is normal on Unix. This ought not to generate a warning. Is there a way to completely suppress it? |
Also, cargo should be following symlinks which are not relevant to its own operation. In my project I'm getting warnings about "loops" in my A working tree might contain symlinks to hazardous or untrusted data (for example, in test temporary directories, or test cases). cargo ought not to be scanning the whole directory tree. Tools that scan "every file" in a subtree ought not to be following symlinks at all. |
I believe this is only happening when using build scripts which makes things a bit fuzzier. #9931 does not help. |
The warning was introduced via #10214. If it is really that common we should be open to adjust #10214 (comment). However, that means we either need to reopen #9528, or has a |
Problem
cargo run
prints awarning: File system loop found: xxx
warning message on every build, for a symlink that is not ever needed by Cargo.This file is in a
fixture/
directory. The fixture exists specifically to test the code with this file system loop case.Steps
protoc
andcmake
cargo run
Observe:
Possible Solution(s)
No response
Notes
This did not occur in 1.71.0.
Version
The text was updated successfully, but these errors were encountered: