The cache folders are just bare git repositories for packages. Keeping these around prevents having to hit the network to reinstall a package version that you've already fetched and installed before.
On Tue, Jun 21, 2016 at 1:31 PM, David Anthoff <anth...@berkeley.edu> wrote: > I’ve never understood the various .cache folders that hang around, but if > you want to be sure to start from a clean .julia package folder you might > want to make sure all the .cache folders are also removed. In particular I > guess the .julia/.cache folder. And then retry the whole Pkg.init() > procedure. > > > > *From:* julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] > *On Behalf Of *Eric Forgy > *Sent:* Tuesday, June 21, 2016 10:24 AM > *To:* julia-users <julia-users@googlegroups.com> > *Subject:* [julia-users] Re: Git-maggedon > > > > Update: > > > > I went back and changed v0.4 -> v0.4_temp2 and did a Pkg.Init() and > Pkg.add("JSON") using v0.4.5 just to see if it was related to upgrading. > > > > I see the exact same problem. I suspect my Git is corrupted somehow which > is wreaking havoc with Pkg. That is just a guess. > > > > Any ideas? > > > On Wednesday, June 22, 2016 at 12:37:50 AM UTC+8, Eric Forgy wrote: > > I just upgraded to v0.4.6 on Windows, but I think this problem might > predate the upgrade (I think the upgrade was partially in hopes of > resolving this). > > > > I don't know if this is a Julia issue or a Git issue, but if I add any > package, e.g. > > > > julia> Pkg.add("JSON") > > > The package gets added to my package directory, but no branch is checked > out so I am on HEAD. > > > > Worse, instead of my remotes being things like: > > > > remotes/origin/master > > > I see things like > > > > remotes/cached/heads/master > > > > Any idea what's going on? I'm on a critical business trip and my > development is completely paralyzed until I can resolve this so I really > sincerely appreciate any help. > > > > In an act of desperation, I moved v0.4 -> v0.4_temp, Pkg.init() and > reinstalled every single package. I still have exactly the same problem, so > I am unable to do anything with Julia until I fix this. > > > > Thank you very much and best regards, > > Eric > > > > > >