You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If opam update --upgrade encounters errors due to lack of free space, the next opam upgrade will attempt to remove all packages.
Looking at the --debug output, this is because ~/.opam/repo/repos-config got corrupted and replaced by an empty file; all packages are considered orphaned after this.
This debug message should probably be upgraded to a user-visible warning (or error, if actively used):
00:00.251 STATE Ignoring globally-selected repository "default", no configured repository by this name found
Thanks for the report. Opam tries to keep a consistent state when a command or an action fail, but when there is no more space, it's hard to write to good configuration.
I'll close this issue, as duplicated of #2715, we can continue the discussion there.
If
opam update --upgrade
encounters errors due to lack of free space, the nextopam upgrade
will attempt to remove all packages.Looking at the
--debug
output, this is because~/.opam/repo/repos-config
got corrupted and replaced by an empty file; all packages are considered orphaned after this.This debug message should probably be upgraded to a user-visible warning (or error, if actively used):
Quick fix for anyone hitting this:
The text was updated successfully, but these errors were encountered: