Thanks for your hard work on Julia to reach this important milestone.
I’m trying to update packages, but find the new package manager to be very confusing to someone who hasn’t been following its evolution.
Could someone create a PSA or you point to a complete tutorial on how to use the new package manageer, in particular how to update existing packages so they work with v0.7 and v1.0?
From googling the very error messages I get, it seems that part of the pain may come from using unregistered packages. However, it’s also possible that I’m missing something very basic.
I tried following the instructions at https://docs.julialang.org/en/latest/stdlib/Pkg/ but those just yield error messages E.g.,
add git@github.com:eford/ABC.jl.git
ERROR: The following package names could not be resolved:
-
Libdl (8f399da3-3557-5675-b5ff-fb832c97cbdb in manifest but not in project)
-
Pkg (44cfe95a-1eb2-52ea-b672-e2afdf69b78f in manifest but not in project)
Please specify by known name=uuid
.
Trying using ABC I get messages like
ERROR: LoadError: ArgumentError: Package ABC does not have StatsBase in its dependencies:
- If you have ABC checked out for development and have
added StatsBase as a dependency but haven’t updated your primary
environment’s manifest file, try Pkg.resolve()
.
- Otherwise you may need to report an issue with ABC
Typeing Pkg.resolve() gives another even more cryptic error message:
ERROR: The following package names could not be resolved:
-
Libdl (8f399da3-3557-5675-b5ff-fb832c97cbdb in manifest but not in project)
-
Pkg (44cfe95a-1eb2-52ea-b672-e2afdf69b78f in manifest but not in project)
Please specify by known name=uuid
.
I have no idea what this error message means, where I’d specify a uuid, how I’d know what value use, or what to do about it. The documention mentions things like manifests and project files, but it seems like maybe they should be automatically generated from my existing package, right? Or maybe I’m supposed to do something? If so, what?
The one thing that’s clear from my googling and looking at old issues, that I’m not the only one who is very confused about how to deal with the new package manager.
Thanks,
Eric