Open Bug 1416998 Opened 8 years ago Updated 3 years ago

mach bootstrap doesn't update PATH on Windows

Categories

(Firefox Build System :: Bootstrap Configuration, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: glandium, Unassigned)

Details

IIRC, mach bootstrap updates things on Linux and Mac to have the .cargo/bin directory in PATH, but it doesn't do it on Windows, despite installing rust there.
Is the intention of this bug to add .cargo/bin to the user PATH env var? First, you need admin rights to do that, second, I would like |mach bootstrap| to NOT change anything globally in my system, third, why is this even needed when I only build from inside the bash prompt that should have been set PATH correctly?
(In reply to Honza Bambas (:mayhemer) from comment #1) > why is this even needed when I only build from inside the bash prompt that should have > been set PATH correctly? That's the point. It's not set in bash, and on Linux and mac, the .bashrc or .profile or whatever is modified to have PATH set. So why not on Windows too?
(In reply to Mike Hommey [:glandium] from comment #2) > (In reply to Honza Bambas (:mayhemer) from comment #1) > > why is this even needed when I only build from inside the bash prompt that should have > > been set PATH correctly? > > That's the point. It's not set in bash, and on Linux and mac, the .bashrc or > .profile or whatever is modified to have PATH set. So why not on Windows too? Ah, so it's missing only in bash. Thanks for clarifying it. I'm just curios why everything works correctly even now.
Alternately, I should just land my patch in bug 1396993.
Product: Core → Firefox Build System
Component: General → Bootstrap Configuration
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.