The cache is just bunch of bare clones of package repos. Since those are immutable and update only, it's safe to share them between arbitrarily many working copies. I don't think manual management is ever necessary unless one of the bare repos gets screwed up some how.
On Friday, September 25, 2015, David Anthoff <[email protected]> wrote: > Stefan, any pointers about this design? > > > > I sometimes delete the folder of a package and then reinstall it with > Pkg.update() if something got screwed up. Do I have to manually manage what > is going on in .cache in that case as well? > > > > Thanks, > > David > > > > *From:* [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');> [mailto: > [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>] *On > Behalf Of *Tony Kelman > *Sent:* Friday, September 25, 2015 5:46 PM > *To:* julia-users <[email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>> > *Subject:* Re: [julia-users] Re: Pkg.[update()/install()/build()] woes on > Windows 10 64 bit > > > > What is it? A cache. Other than that, no idea what it accomplishes (aside > from reading the code to find out) or why it works the way it does. It was > added in > https://github.com/JuliaLang/julia/commit/df7a08893e4402182ec64178ffdb3130aa228943 > but there are no design docs on the package manager. Ask Stefan. > > > > .cache moved to being shared between different versioned package > directories on 0.4 because of https://github.com/JuliaLang/julia/pull/7361. > It worked that way on unix in 0.3 as well. With better support for making > directory junctions via the symlink function (which was still a pretty new > feature when 0.3.0 was released), that PR made the behavior consistent on > Windows as well. > > > > On Friday, September 25, 2015 at 5:10:50 PM UTC-7, David Anthoff wrote: > > What is the .cache directory actually? And why is it moved into the > ~\.julia folder for 0.4? > > > > *From:* [email protected] [mailto:[email protected]] *On > Behalf Of *Tony Kelman > *Sent:* Friday, September 25, 2015 2:35 PM > *To:* julia-users <[email protected]> > *Subject:* [julia-users] Re: Pkg.[update()/install()/build()] woes on > Windows 10 64 bit > > > > Try deleting everything in C:\Users\ejfie\.julia\v0.3\.cache - something > might be corrupt there > > > On Friday, September 25, 2015 at 12:29:14 PM UTC-7, Evan Fields wrote: > > I've been encountering problems with packages. Here's what happened: > > · I installed Julia 0.3.11 via the 64 bit .exe on julialang.org > > - Changed the install path to C:\Julia-0.3.11 but otherwise all > default options > > · On Windows 10 x64, not using Cygwin or related > > - Right after install I opened a Julia terminal window; I had the > session below. > > The errors are shown in the session below. I've tried > > - Running as an administrator > > - Running git config --global url."https://".insteadOf git:// in shell > mode > > - Running Pkg.init() (already initialized) > > - Trying to clone a repository in Julia/Git using the git-bash there (it > worked over https) > > > > _ _ _(_)_ | A fresh approach to technical computing > > (_) | (_) (_) | Documentation: http://docs.julialang.org > > _ _ _| |_ __ _ | Type "help()" for help. > > | | | | | | |/ _` | | > > | | |_| | | | (_| | | Version 0.3.11 (2015-07-27 06:18 UTC) > > _/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release > > |__/ | x86_64-w64-mingw32 > > > > julia> Pkg.add("Images") > > INFO: Nothing to be done > > INFO: METADATA is out-of-date — you may not have the latest version of Images > > INFO: Use `Pkg.update()` to get the latest versions of your packages > > > > julia> Pkg.update() > > INFO: Updating METADATA... > > Checking out files: 100% (1627/1627), done. > > INFO: Updating cache of Hexagons... > > INFO: Updating cache of Gadfly... > > INFO: Updating cache of ArrayViews... > > INFO: Updating cache of Lazy... > > INFO: Updating cache of ImmutableArrays... > > INFO: Updating cache of Graphics... > > INFO: Updating cache of StatsBase... > > INFO: Updating cache of Requires... > > INFO: Updating cache of MacroTools... > > INFO: Updating cache of NaNMath... > > INFO: Updating cache of FactCheck... > > INFO: Updating cache of DataArrays... > > INFO: Updating cache of Grid... > > INFO: Updating cache of Loess... > > INFO: Updating cache of Compat... > > INFO: Updating cache of FixedPointNumbers... > > INFO: Updating cache of WoodburyMatrices... > > INFO: Updating cache of Compose... > > INFO: Updating cache of JuliaParser... > > INFO: Updating cache of Iterators... > > INFO: Updating cache of JSON... > > INFO: Updating cache of DataFrames... > > INFO: Updating cache of GZip... > > INFO: Updating cache of Reexport... > > INFO: Updating cache of Showoff... > > INFO: Updating cache of Distributions... > > INFO: Updating cache of Optim... > > INFO: Updating cache of Color... > > INFO: Updating cache of SortingAlgorithms... > > INFO: Updating cache of Docile... > > INFO: Updating cache of Calculus... > > INFO: Updating cache of PDMats... > > INFO: Updating cache of DualNumbers... > > INFO: Updating cache of DataStructures... > > INFO: Updating cache of Jewel... > > ERROR: couldn't update C:\Users\ejfie\.julia\v0.3\.cache\Hexagons using `git > remote update` > > in wait at task.jl:284 > > in wait at task.jl:194 > > in wait at task.jl:48 > > in sync_end at task.jl:311 > > in update at pkg/entry.jl:319 > > in anonymous at pkg/dir.jl:28 > > in cd at file.jl:30 > > in cd at pkg/dir.jl:28 > > in update at pkg.jl:41 > > > > julia> using Images > > ERROR: Images not properly installed. Please run Pkg.build("Images") then > restart Julia. > > in error at error.jl:21 (repeats 2 times) > > while loading > C:\Users\ejfie\.julia\v0.3\Images\src\ioformats/libmagickwand.jl, in > expression starting on line 31 > > while loading C:\Users\ejfie\.julia\v0.3\Images\src\Images.jl, in expression > starting on line 38 > > > > julia> Pkg.build("Images") > > INFO: Building Images > > =================================================[ ERROR: Images > ]================================================= > > > > > > type Nothing has no field match > > while loading C:\Users\ejfie\.julia\v0.3\Images\deps\build.jl, in expression > starting on line 37 > > > > =================================================================================================================== > > > > > > =================================================[ BUILD ERRORS > ]================================================== > > > > > > WARNING: Images had build errors. > > > > - packages with build errors remain installed in C:\Users\ejfie\.julia\v0.3 > > - build the package(s) and all dependencies with `Pkg.build("Images")` > > - build a single package by running its `deps/build.jl` script > > > > =================================================================================================================== > > > > > > julia> > > > > Hopefully I'm missing something simple here! Any suggestion? > >
