-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustc doesn't handle relative symlinks to libraries #13890
Comments
I haven't been able to reproduce this functionality, can you give an example test case/scenario when this arises? |
In my case I have the following directory structure:
And I run |
I have been able to reproduce, thanks! |
The logic of the custom realpath function in metadata::loader was incorrect, but the logic in util::fs was correct. Closes rust-lang#13890
The logic of the custom realpath function in metadata::loader was incorrect, but the logic in util::fs was correct. Closes #13890
Thanks! |
…Veykril fix: unescape inline module names in module resolution Fixes rust-lang#13884
When rustc searches for libraries and encounters a symlink, instead of directly opening the link, it uses
readlink
and then uses the resulting path relative to cwd instead of relative to the link, causing it to fail to find the file.The problem can be seen in the following excerpt from the output of
strace
onrustc
:The text was updated successfully, but these errors were encountered: