Skip to content
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

Unexpected "could not canonicalize path" warnings in proxies when on a network drive #682

Open
brson opened this issue Aug 23, 2016 · 4 comments

Comments

@brson
Copy link
Contributor

brson commented Aug 23, 2016

Original report rust-lang/cargo#2990 (comment)

When running cargo run inside E:\hello_world cargo is printing warnings like

warning: could not canonicalize path: 'E:\hello_world'

That's pretty surprising since there's nothing interesting about that path.

@brson
Copy link
Contributor Author

brson commented Aug 23, 2016

In the original report, drive E is a network drive. So it seems fs::canonicalize doesn't work on those.

Maybe we can detect when the drive is a network drive and not emit the warning, as a known case. Or maybe the warning is not worth printing at all.

@brson brson changed the title Unexpected "could not canonicalize path" warnings in proxies Unexpected "could not canonicalize path" warnings in proxies when on a network drive Aug 23, 2016
@Scondo
Copy link

Scondo commented Mar 19, 2019

Same problem with ram drive... up to block of compilation.

@kinnison
Copy link
Contributor

If you bypass rustup and run the compiler/cargo directly, are you able to compile/whatever? If so, then it's worth trying to bypass this in rustup, if the compiler or cargo also suffer then perhaps it'd be better as a bug against fs::canonicalize ?

@petrutlucian94
Copy link

petrutlucian94 commented May 8, 2019

I'm having the same issue with Docker Windows containers. In my case, the project dir is a volume exposed to the container (so it's basically a symlink pointing to something like \?\ContainerMappedDirectories<guid>).

I get the same warning and the build fails, unless I move the project files to a separate folder: http://paste.openstack.org/raw/751091/

From what I can tell, rustc cannot handle Windows symlinks.

LE: I think this issue has been duplicated A LOT of times against multiple repos, here are a few of them: rust-lang/rust#59117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants