Sorry to dredge this up, but do you happen to have a pointer to this code?
julia> import Pkg
julia> Pkg.METADATA_compatible_uuid("FooBar")
UUID("3d96ceeb-b1a4-5dad-8d1e-6f3b1b04a759")
9 Likes
This apparently no longer works as of Julia V 1.11.1:
**julia>** import Pkg
**julia>** Pkg.METADATA_compatible_uuid("SimUtils")
**ERROR:** UndefVarError: `METADATA_compatible_uuid` not defined in `Pkg`
Suggestion: check for spelling errors or missing imports.
Stacktrace:
[1] **getproperty(**x::Module, f::Symbol**)**
@ Base ./Base.jl:42
[2] top-level scope
@ REPL[2]:1
Correct. That was a function that helped migration from the Julia 0.6 package manager to the one that is used today. It has been obsolete ever since that migration finished and should not be used today, even if you would find it in an old version of Julia.
If you just want to create a UUID for a package, use
using UUIDs
uuid4()
For more information on creating packages, see 5. Creating Packages ยท Pkg.jl.
3 Likes