-
Notifications
You must be signed in to change notification settings - Fork 368
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
Crash with broken installation if upgrade called from invalid cwd #2442
Comments
Upon some further investigation, I believe this occurred because the directory that this was being run from no longer existed. It's perhaps worth bailing out earlier and giving a better error message in this case. |
This is similar to #2435 and probably indicates that we need to test various operations when in an invalid cwd. |
Which version of opam are you using ? I'm not able to reproduce with master, nor branch-1.2. |
opam normally detects when it's run with an invalid CWD, but may sometimes break when run from a directory that it itself removes, e.g. |
The upgrade I just attempted died in a rather mysterious way.
Here's the full terminal output.
The text was updated successfully, but these errors were encountered: