-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crawl registry (→ to rm restriction "Only works for pkgs in active project") #5
Comments
Do |
First q: how to get uuid of pkg ah, prob look at PkgDeps etc here |
https://github.com/JuliaEcosystem/PkgDeps.jl https://github.com/JuliaEcosystem/PkgDeps.jl/blob/a568954/src/utilities.jl#L105:
from https://github.com/JuliaEcosystem/PkgDeps.jl/blob/a568954/src/registry_instance.jl#L11 d = parsefile(joinpath(path, "Registry.toml"))
pkgs = Dict{AbstractString, PkgEntry}()
for (uuid, info) in d["packages"]
uuid = UUID(uuid)
name = info["name"]
… |
so, their |
hm, |
just googled it, hah. function uuids_from_name(r::RegistryInstance, name::String)
create_name_uuid_mapping!(r)
return get(Vector{UUID}, r.name_to_uuids, name)
end |
Two files (both used by
|
exploration:
(from https://github.com/tfiers/julia-sketches,
pkgdepgraph-v2
)The text was updated successfully, but these errors were encountered: