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

mdbook@0.4.40 ignores rust-toolchain when running rustdoc #2501

Open
ma2bd opened this issue Dec 8, 2024 · 1 comment
Open

mdbook@0.4.40 ignores rust-toolchain when running rustdoc #2501

ma2bd opened this issue Dec 8, 2024 · 1 comment
Labels
C-bug Category: A bug, incorrect or unintended behavior

Comments

@ma2bd
Copy link

ma2bd commented Dec 8, 2024

Problem

mdbook@0.4.40 ignores rust-toolchain when running rustdoc.

This is problematic when running mdbook test -L PATH where PATH contains compiled crates -- likely compiled in a way that doesn't ignore rust-toolchain.

mdbook@0.4.37 is still fine.

Steps

Let me know if you need actual repro steps. I used our own repository. See the CI runs on the commits of linera-io/linera-documentation#171

Possible Solution(s)

No response

Notes

No response

Version


@ma2bd ma2bd added the C-bug Category: A bug, incorrect or unintended behavior label Dec 8, 2024
@ehuss
Copy link
Contributor

ehuss commented Dec 8, 2024

Hm, yea, it looks like this changed as a result of #2259 which changed it so that rustdoc's current directory is inside the temp folder in order to generate better path displays. I'm not entirely sure how to fix that. Unfortunately it doesn't look like rustup provides a rustup run that will use the current directory's override.

One option might be some kind of path remapping, which I'm uncertain if that is implemented yet (rust-lang/cargo#9887).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: A bug, incorrect or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants