Mozilla-Build could expose cargo on $PATH
Categories
(Firefox Build System :: Toolchains, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: MeFisto94, Assigned: MeFisto94)
Details
(Keywords: in-triage)
Attachments
(1 file, 1 obsolete file)
|
1.14 KB,
patch
|
glob
:
review+
|
Details | Diff | Splinter Review |
When using Mozilla-Build Environment on Windows and wanting to contribute to servo (or generally using it as well-set-up environment), one has most tools available (git, hg, ...), but the cargo toolchain is not exposed, even though it is installed into ~/.rustup/toolchains/stable-x86_64-pc-windows-msvc/bin/cargo.
Now I know that there are multiple toolchains available (nightly, older versions), thus I don't know how we could always have the latest version available, but we could maybe symlink it into the mozilla-build main directory?
I get that this issue is non-trivial, because this would have to be done from mach, which should be unrelated from such mozilla-build changes, but maybe someone has some input on that?
| Assignee | ||
Comment 1•6 years ago
|
||
I revise that statement:
Couldn't we just append ~/.cargo/bin to the path, or does this have undesired side effects?
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
|
||
Keep https://searchfox.org/mozilla-central/rev/8d04c3f5332d470eeae5aa3dc0ed132359a339c1/build/moz.configure/toolchain.configure#722 in mind, this would add the path explictly (i.e. it's twice on the searchpath for tools), but I don't think it's a problem.
| Assignee | ||
Comment 3•6 years ago
|
||
The old patch relied on expanding ~, which at that stage is mounted onto msys' home folder, not the real windows user home. Thus it had a wrong path and didn't work.
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Pushed by bjones@mozilla.com:
https://hg.mozilla.org/mozilla-build/rev/3b8c537ca3c8
Expose Cargo on $PATH, r=glob
Comment 8•4 years ago
|
||
I'm not sure we should keep this. MozillaBuild doesn't come with cargo, and installing rust explicitly gives instructions to add the cargo directory to the path (or does it itself, I'm not sure).
Comment 9•4 years ago
•
|
||
installing rust explicitly gives instructions to add the cargo directory to the path (or does it itself, I'm not sure).
It automatically adds it to the Windows "User" Path environment variable, but not the "System" Path environment variable.
Either way, today's MozillaBuild doesn't have cargo on the path. I'm guessing that's because we're not including the User's Path configurations?
To be fully unambiguous, even if we back out this bug's patch, I think that cargo should be on the PATH within MozillaBuild.
Comment 10•4 years ago
|
||
Either way, today's MozillaBuild doesn't have cargo on the path. I'm guessing that's because we're not including the User's Path configurations?
The patch landed after the 3.3 release.
Comment 11•4 years ago
|
||
The patch landed after the 3.3 release.
True, but also, if starting a new cmd populates the PATH with both System and User path entries, then why are user path entries missing from MozillaBuild?
Description
•