-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Regression in pwd of cargo doc #47434
Comments
Mentioning some rustdoc contributors: @QuietMisdreavus @GuillaumeGomez |
😕 If it's a problem of resolving the |
This looks like it's probably caused by rust-lang/cargo@8647a87, and as such probably intentional (cc @alexcrichton). However, the behavior where a |
Haven't read through that Cargo commit, but this is what I would consider the correct behavior. From what I can tell, this is how it works for Note that there are two relevant directory issues and I maybe should have mentioned the second one above:
My shell script refers to script.js which exists in the directory from which |
Ok so there's two things going on here I think. As @Mark-Simulacrum pointed out this is caused by rust-lang/cargo#4788, so strictly speaking it's a bug in Cargo, not rustc. In any case:
|
@alexcrichton can we fix the Cargo bug? |
@wycats the bug about |
@rust-lang/cargo We need to discuss and resolve the relative rustdoc path issue |
Since this ended up hitting stable I'm going to close. |
For one of my projects I build and publish docs of the master branch from CI. I use the command
RUSTDOC=./rustdoc cargo doc
with a script that looks like:This works as of stable rustc 1.23.0. But with rustc 1.24.0-beta.3 it no longer works because the
RUSTDOC
is resolved relative to/path/to/registry/src/jackfan.us.kg-$hash/$crate-$version
instead of relative to the directory from which I rancargo doc
. This is different from howRUSTC=./foo cargo build
is resolved so I believe it is a bug.The text was updated successfully, but these errors were encountered: