Pkg.add(Pkg.Types.Context(;julia_version), [PackageSpec(...)])
failing since Julia v1.7 #2942
Open
Description
opened on Jan 16, 2022
Julia v1.6:
julia> using Pkg
julia> Pkg.add(Pkg.Types.Context(;julia_version=v"1.6.3"), [PackageSpec(;name="libjulia_jll")])
b040-befd59781bbf"), version=Pkg.Types.VersionSpec("*"))])
Resolving package versions...
Updating `/tmp/jl_aPeyH5/Project.toml`
[5ad3ddd2] + libjulia_jll v1.7.0+8
Updating `/tmp/jl_aPeyH5/Manifest.toml`
[692b3bcd] + JLLWrappers v1.4.0
[21216c6a] + Preferences v1.2.3
[5ad3ddd2] + libjulia_jll v1.7.0+8
[0dad84c5] + ArgTools
[56f22d72] + Artifacts
[2a0f44e3] + Base64
[ade2ca70] + Dates
[f43a241f] + Downloads
[b77e0a4c] + InteractiveUtils
[b27032c2] + LibCURL
[76f85450] + LibGit2
[8f399da3] + Libdl
[56ddb016] + Logging
[d6f4376e] + Markdown
[ca575930] + NetworkOptions
[44cfe95a] + Pkg
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[fa267f1f] + TOML
[a4e569a6] + Tar
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
[deac9b47] + LibCURL_jll
[a83860b7] + LibOSXUnwind_jll
[29816b5a] + LibSSH2_jll
[183b4373] + LibUV_jll
[745a5e78] + LibUnwind_jll
[c8ffd9c3] + MbedTLS_jll
[14a3606d] + MozillaCACerts_jll
[83775a58] + Zlib_jll
[8f36deef] + libLLVM_jll
[8e850ede] + nghttp2_jll
[3f19e933] + p7zip_jll
Julia v1.7:
julia> using Pkg
julia> Pkg.add(Pkg.Types.Context(;julia_version=v"1.6.3"), [PackageSpec(;name="libjulia_jll")])
Resolving package versions...
ERROR: KeyError: key UUID("a83860b7-747b-57cf-bf1f-3e79990d037f") not found
Stacktrace:
[1] getindex
@ ./dict.jl:481 [inlined]
[2] deps_graph(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, uuid_to_name::Dict{UUID, String}, reqs::Dict{UUID, Pkg.Versions.VersionSpec}, fixed::Dict{UUID, Pkg.Resolve.Fixed}, julia_version::VersionNumber)
@ Pkg.Operations /usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:408
[3] resolve_versions!(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, julia_version::VersionNumber)
@ Pkg.Operations /usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:334
[4] targeted_resolve(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
@ Pkg.Operations /usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1154
[5] tiered_resolve(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, julia_version::VersionNumber)
@ Pkg.Operations /usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1125
[6] _resolve(io::Base.TTY, env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
@ Pkg.Operations /usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1160
[7] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
@ Pkg.Operations /usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1176
[8] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:268
[9] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:221
[10] top-level scope
@ REPL[9]:1
Julia master:
julia> using Pkg
julia> Pkg.add(Pkg.Types.Context(;julia_version=v"1.6.3"), [PackageSpec(;name="libjulia_jll")])
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Resolving package versions...
ERROR: AssertionError: proj_file !== nothing
Stacktrace:
[1] deps_graph(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, uuid_to_name::Dict{UUID, String}, reqs::Dict{UUID, Pkg.Versions.VersionSpec}, fixed::Dict{UUID, Pkg.Resolve.Fixed}, julia_version::VersionNumber)
@ Pkg.Operations ~/repo/julia/usr/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:432
[2] resolve_versions!(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, julia_version::VersionNumber)
@ Pkg.Operations ~/repo/julia/usr/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:346
[3] targeted_resolve(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
@ Pkg.Operations ~/repo/julia/usr/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1197
[4] tiered_resolve(env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, julia_version::VersionNumber)
@ Pkg.Operations ~/repo/julia/usr/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1168
[5] _resolve(io::Base.TTY, env::Pkg.Types.EnvCache, registries::Vector{Pkg.Registry.RegistryInstance}, pkgs::Vector{Pkg.Types.PackageSpec}, preserve::Pkg.Types.PreserveLevel, julia_version::VersionNumber)
@ Pkg.Operations ~/repo/julia/usr/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1203
[6] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
@ Pkg.Operations ~/repo/julia/usr/share/julia/stdlib/v1.8/Pkg/src/Operations.jl:1219
[7] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API ~/repo/julia/usr/share/julia/stdlib/v1.8/Pkg/src/API.jl:275
[8] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API ~/repo/julia/usr/share/julia/stdlib/v1.8/Pkg/src/API.jl:228
[9] top-level scope
@ REPL[3]:1
No idea what the errors mean
Activity