-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Pkg cannot recover from corrupted METADATA #9932
Comments
Where did you install Julia from? A source build or a binary? The binaries have Git bundled and should never have this issue. A source build on Windows can't do anything Pkg-related because of this, there are hacky solutions but I was hoping #7584 would've been done by now or I would've improved the build system a little. |
I downloaded a binary. It was on a fresh install and for once Julia was the 1st thing I installed so I just assumed it was git missing that was the cause! Installing git and putting it on the path did fix this though. |
No, check the binary under You shouldn't need a separate git installation if you're downloading a binary. |
It is all there. Will try and reproduce issue without git installed and see what happens. Will uninstall git now and delete the .Julia folder and see if it was not caused by running |
Ha! Found the cause. When the internet cuts out (which is most likely what happened here due to a crappy connection) or the julia REPL is closed midway through fetching METADATA then the metadata is corrupted and that causes the issue. |
Aha, that makes a lot more sense. What kind of problems was a corrupted partial-download of METADATA giving? I wonder whether there's any reasonable way of checking integrity here. |
I am considering (need to setup a build system 1st) to submit a pull request which just renames the This should not cause any other issues (I hope) as only |
It depends on how far the download gets.
Is given when a very early termination occurs.
Is given instead, this is the error I had initially. Interestingly you can't reinit or run |
I encoutered into this too with version 0.3.7 binary on windows7 after a fresh intall. My wifi is not good anyway. |
|
Until we figure a way to make git-related actions more robust, the best thing to do would be to manually delete |
Added Tests for REQUIRE and META_BRANCH existence
Added Tests for REQUIRE and META_BRANCH existence
The issue name is not exactly correct but difficult to condense into a single line.
This occurred with Julia 0.3.5 on Win x64
If you install Julia on windows without having git installed,
Pkg.status()
will run and silently fail.When running
Pkg.add()
then git issues will pop up, which boils down to that git needed to be installed.After installing git however the metadata has not been populated correctly and is not corrected by re-running
Pkg.status()
.At this point running
Pkg.status()
just returnsNo packages installed
. Deleting the .Julia folder fixes all the issues and packages can be added again.#7584 would fix this as git would not be required to be installed.
The text was updated successfully, but these errors were encountered: