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

Release train paths under Windows #25781

Closed
ndarilek opened this issue May 25, 2015 · 9 comments
Closed

Release train paths under Windows #25781

ndarilek opened this issue May 25, 2015 · 9 comments
Labels
O-windows Operating system: Windows

Comments

@ndarilek
Copy link

I use Mingw and its associated shells under Windows. Unfortunately, there's an ugly issue where the Windows path is only propagated to Mingw shells on first boot, making Rust upgrades a bit more difficult. If I want to use Rust in my mingw shell, I have to reboot or use vanilla cmd.

For instance, Rust is now in c:\program files\rust stable 1.0. (Or something similar, in any case.) Might it make more sense to instead use c:\program files\rust {stable,beta,nightly}? Then I can run separate toolchains if I like and switch my path accordingly, but a 1.0-1.1 upgrade won't break my path if I want to stick with stable. This moves the version information out of the path, but is it really necessary when rustc -v works everywhere consistently? Perhaps I might want multiple stable/beta versions installed, but in that case the advanced installer would let me choose another directory anyway. This would also help with the uninstall case--I've used Windows versions for the past 6-8 months or so and my path was littered with a whole bunch of old directories that weren't removed when I uninstalled older versions. :)

Thanks.

@Diggsey
Copy link
Contributor

Diggsey commented May 25, 2015

I've been using rust with mingw for a while and I haven't encountered this issue - simply starting a new msys2 shell will get fresh versions of the environment variables, exactly the same as with vanilla cmd. Is this a known bug with msys?

@ndarilek
Copy link
Author

ndarilek commented May 25, 2015 via email

@retep998
Copy link
Member

The environment variables of a process are based on the environment variables when the process starts up. This means that you need to fully close and reopen bash in order for changes to PATH to be recognized.

@ndarilek
Copy link
Author

ndarilek commented May 26, 2015 via email

@steveklabnik steveklabnik added the O-windows Operating system: Windows label May 26, 2015
@brson
Copy link
Contributor

brson commented May 27, 2015

This does sound like a slightly unexpected setup, but from the description (things sort of work sometimes) it sounds like there may be some solution.

@steveklabnik
Copy link
Member

@ndarilek have you seen this lately? rust-lang-deprecated/rust-packaging#52 should be helping.

@Mark-Simulacrum
Copy link
Member

I'm going to close -- I feel like this is something that we might be able to handle better but @ndarilek hasn't responded if the workaround or the PR linked in the previous comment helped. It also seems like others don't experience this, so perhaps it's an environment specific issue (though we'd love to alleviate those too).

@ndarilek
Copy link
Author

ndarilek commented May 16, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-windows Operating system: Windows
Projects
None yet
Development

No branches or pull requests

7 participants