Juan
December 6, 2018, 7:29pm
3
Today I haven’t installed anything new but when I’ve installed new packages (for example last week StatsMakie.jl) I had this kind of errors :
Apparently my registry is dirty; how should I clean it?
Julia-1.0.2> Pkg.update()
Updating registry at `C:\Users\plowman\.julia\registries\General`
┌ Warning: Some registries failed to update:
│ — `C:\Users\plowman\.julia\registries\General` — registry dirty
└ @ Pkg.API C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:157
Resolving package versions...
Updating `C:\Users\plowman\.julia\environments\v1.0\Project.toml`
[no change…
I’ve seen you are the guy who replied there suggesting to remove ~/.julia/registires/General
. Other threads suggest to remove the Clones folder instead.
If I don’t do it I just can’t install or build the package.
More about dirty folders:
opened 05:31PM - 27 Oct 15 UTC
closed 01:34PM - 30 Oct 15 UTC
This is really bad. With an unstaged "change", you can't use any Pkg commands o… n the package because git thinks it is dirty. I didn't "do" anything except using Plots, immerse(), plot(1:4). I did the same thing with pyplot().
This is very painful for users to fix, requiring much mucking about with git. Standard things like git checkout -- . do NOT work to fix this. I ended up rm'ing the file and rebasing the repository, then Pkg.rm'ing it to get rid of it and then reinstalling.
And even removing things leaves lots of detritus just in case you want to reinstall-so you never really get it clean unless you delete from the file system. and then you've got out of sync caches.
Here is the outcome:
shell> cd ..
/Users/lewislevinmbr/.julia/v0.4/Plots
shell> git status
HEAD detached at 894928d
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
```
modified: img/qwt/qwt_example_2.gif
```
no changes added to commit (use "git add" and/or "git commit -a")
Is there any way to remove just the broken subfolder (know which one) instead of all the registry or clones folder?