Newbie question here, but on the first run of Pkg.add on a fresh install of julia, the system errors out with a message that a user needs to run Pkg.init()
ERROR: Package metadata directory julia/PKG/v0.6/METADATA doesn’t exist; run Pkg.init() to initialize it.
It seems to know that it is missing and needs to be run. Why doesn’t the system just run it? Is there some risk for the system to run that automatically in this case?
Since you can redefine JULIA_PKGDIR, the package manager cannot be sure that you have an ininitialized repo directory, instead of an initialized one full of packages somewhere else that you just forgot to mention.