-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
advice for recovering from corrupted depot in the manual #1683
Comments
Might be worth adding a |
And of course, if you don't have any packages checked out for development, then you simply do:
|
I'd never suggest to people to nuke the julia directory. Why not just move it? |
I agree with @giordano on this --- we should never recommend just deleting things. Until My understanding is the following:
Is this correct? Did I miss anything? |
Can't think of anything else. However, |
For 1.: |
Thinking about this, it may be preferable to include something in Pkg instead of a shell script that people copy-paste. I am thinking of something like the following: pkg> nuke
This command needs to be invoked with --yes to do anything; this is just a message.
It can be used to recover from an inconsistent state of the package depot by removing
files that were downloaded or automatically generated. The removed files will be
saved to a backup directory (which is displayed).
Used with --environment, it also resets your default environment.
|
Was thinking of something similar myself. |
Since corrupted registry questions come up daily on Discourse, I am wondering how to move forward with this. In order of increasing difficulty:
|
I'm not sure about |
I think I might have a corrupted depot now, so I'm going through this.
Is There is
can be safely deleted? |
Okay, not sure if this might be relevant here. But I tried to delete: artifacts, clones, compiled, packages. Then I reopened julia and did
|
Occasionally parts of the depot become corrupted (because of interrupted downloads/processes, bugs in Pkg, etc). While this is not part of the normal workflow, it would be great if the manual could have a section on how to recover from these situations, that could be linked eg on Discourse.
Eg
~/.julia/packages
pkg> resolve
?The text was updated successfully, but these errors were encountered: