-
Notifications
You must be signed in to change notification settings - Fork 359
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
Incorrect message on windows for updating environment vars #6134
Comments
Can you share the output of |
Indeed, if you're running |
I can tell you how the output differs from what is there in a working environment: all the paths (including paths unrelated to ocaml) are prefixed with
while my working PATH has it as |
both should be equivalent in a cygwin context so i'm not sure why that would break things. Are you using MSYS2, an existing Cygwin installation or the recommended internal Cygwin installation?
This part is pretty surprising though, are you sure this is verbatim what's in your PATH? |
I’ve just noticed something similar to this running opam-with-an-internal-Cygwin installation running in a different Cygwin installation - looks like you’re running opam-with-an-internal-Cygwin-installation in Git for Windows Bash (or an MSYS2 installation) and seeing a bigger version of the same problem. |
(I also have an idea for a fix…) |
I am using my git for windows bash.
|
On windows, I get a message to run
eval $(opam env)
. E.g.:If I do, my $PATH is totally messed up and opam is no longer in the path.
Instead, it seems I should be using the command provided in a blog post here:
https://opam.ocaml.org/blog/opam-2-2-0-windows/
On second inspection, It seems that this only happens in my mingw shell, in powershell I get the correct command.
But either way running
eval $(opam env)
in the mingw shell does not produce the correct results.The text was updated successfully, but these errors were encountered: