-
Notifications
You must be signed in to change notification settings - Fork 371
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
global switch remains in PATH when local switch is activated #4649
Comments
That's not expected to happen; the mechanism opam uses to revert its previous changes is to lookup the Maybe something interfered with one of the two ? You could check by running |
|
Possibly the problem is related to sourcing |
Yeah, removing the |
I seem to have a similar issue probably due to the fact that I enter my Wayland session via a terminal which already sets the PATH via the opam script, so the original switch is always kept. |
Discussed today: sourcing |
When I
cd
to a directory containing a local opam switch (a_opam
directory), myPATH
looks as follows:Notice now the global "system" switch is in the path even though that switch is not even active! That should not happen, right?
I have the following in my
~/.profile
:And in my
~/.bashrc
:The text was updated successfully, but these errors were encountered: