-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
can't install rustc-docs component: detected conflict: 'share/doc/rust/html/rustc'
#75833
Comments
Ah, right. https://doc.rust-lang.org/nightly/rustc/ (and the docs/html/rustc) directory do overlap. I guess we can call the directory rustc-docs or something? Seems rather annoying. I guess we could also put it at |
hey, i am wondering are there any way to at least bypass this issue temporarily ? |
The rustc docs are available online https://doc.rust-lang.org/nightly/nightly-rustc/, and you can install the component locally with rustup-toolchain-install-master from crates.io, which doesn't complain as much about conflicts. |
I've got this issue too! So if anyone's got any hints/tips, it'd be much appreciated!!
|
Are you seeing that by default? @kinnison -- do we need to disable rustc-docs as a component or move it out of the complete profile perhaps? |
@Mark-Simulacrum Could you elaborate what you mean by this? =) I meant to show with my copy/pasted terminal that I've got (globally) |
The As for the conflicts you're seeing, We need to decide if a directory conflict is acceptable, file conflicts are not. |
To be clear, right now the files are also likely to conflict, so rustc-docs just isn't installable alongside rust-docs. I had thought the amount of people this bug affected is "about zero" though, but I guess if users are hitting it just on |
If they've set their default profile to |
Fair enough, but I cannot remember having done that. Not saying that I haven't, I honestly cannot remember. How can one tell? |
Apologies for the delay (timezone fun) -- You can run |
Can confirm. Works for me now! Thanks @kinnison! =)
|
This recommendation is not mentioned in the rustup install tool. If one just uses the recommended command for WSL in https://www.rust-lang.org/tools/install and chooses the |
@spdionis https://rust-lang.github.io/rustup/concepts/profiles.html states quite clearly that |
If it is broken, it should not be a choice. A sane additional profile choice including rls and other often used components should be added instead. |
Agreed. This is the first I'm learning of the fact that we recommend not using complete at all. My understanding from a few years ago was "use complete if you work on rustc or the standard library", which I do, and nothing had ever prompted me to change that understanding. |
This type of error is peak linuxery. |
Still an issue, I can't install a nightly toolchain |
it was installable before, what's the point in keeping broken profile? |
Personally I think that Deciding on the right approach for how to deal with overlapping files in components vs. forcing the components to not overlap is what will help with |
For now it probably makes sense to drop rustc-docs from complete, I guess - not sure I'm exactly a fan of that but it seems like the right thing to do. |
Dropping this is at least something that would make complete viable again. It may be reintroduced later when the issue of paths overlapping is resolved, whatever the resolution may be. Whenever |
I think the warning that |
I read most of the docs and was super fired up to install some rust and start coding. Therefore i selected "complete" for a profile. Because i thought, "I love rust! ...gimme the whole thing!" |
This seems to now happen with Works with:
But it's fairly confusing that this is the only way to get nightly working and I'm also surprised it doesn't happen for stable. Probably not ideal since figuring out the only way to get this to work is via minimal is a bit annoying, and many "beginner" libraries require rocket, so I assume loads of new people might hit this wall... maybe I'm pessimistic. |
This happens when installing rust for the first time, if you use use |
Perhaps there should be an override similar to |
I came here with the same problem didn't know it was from using nightly + complete. I know at one point I did run that. But right now I'm getting errors just running |
@randall-coding Run |
Can we please remove |
…plete, r=pietroalbini Drop rustc-docs from complete profile Addresses rust-lang#75833, but does not fully fix it -- we should support side-by-side installation of these ideally, but that's not currently possible. r? `@pietroalbini`
I'd like to see this solved if possible--as a rustc contributor, I often find myself trawling through rustc's internal docs, and I've found that having a local copy is much faster to load than a remote copy--just due to the sheer amount of content present. While it is possible to just have rustup try and download the component (and fail, but keep it in One possible solution is just to mirror the online link and have it install to |
Can confirm that this is still a problem as I just ran into it again and found my own issue from 3 years ago 😆 |
detected conflict: 'share/doc/rust/html/rustc'
Coming from rust-lang/rustup#3717, I'd like to know if we can assign another folder name to It would be a hack to manually change the name from Rustup's side, so I'm reluctant to do so.
I'd say the naming of OTOH @ThePuzzlemaker's I personally would like to see something like |
I don't see any reason we can't change the file path, but we will need to update https://github.com/rust-lang/promote-release/blob/4f839d6a209966ead020f6a8613c70e5e6e3a630/src/main.rs#L488 to make sure the doc.rust-lang.org docs still work. |
#75593 was supposed to fix this but it didn't work out I guess?
The text was updated successfully, but these errors were encountered: