Skip to content
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

Bad error message when no URLs found for a package #3879

Open
fredrikekre opened this issue Apr 23, 2024 · 0 comments
Open

Bad error message when no URLs found for a package #3879

fredrikekre opened this issue Apr 23, 2024 · 0 comments

Comments

@fredrikekre
Copy link
Member

This could use a better error message:

ERROR: ArgumentError: collection must be non-empty
Stacktrace:
  [1] first
    @ ./abstractarray.jl:473 [inlined]
  [2] install_git(io::Pkg.UnstableIO, uuid::Base.UUID, name::String, hash::Base.SHA1, urls::Set{String}, version_path::String)
    @ Pkg.Operations /cache/julia-latest-linux-x86_64/share/julia/stdlib/v1.12/Pkg/src/Operations.jl:761
  [3] download_source(ctx::Pkg.Types.Context; readonly::Bool)
    @ Pkg.Operations /cache/julia-latest-linux-x86_64/share/julia/stdlib/v1.12/Pkg/src/Operations.jl:993
  [4] download_source
    @ /cache/julia-latest-linux-x86_64/share/julia/stdlib/v1.12/Pkg/src/Operations.jl:874 [inlined]
  [5] instantiate(ctx::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::Bool, platform::Base.BinaryPlatforms.Platform, allow_build::Bool, allow_autoprecomp::Bool, workspace::Bool, kwargs::@Kwargs{})
    @ Pkg.API /cache/julia-latest-linux-x86_64/share/julia/stdlib/v1.12/Pkg/src/API.jl:1274
  [6] instantiate
    @ /cache/julia-latest-linux-x86_64/share/julia/stdlib/v1.12/Pkg/src/API.jl:1171 [inlined]
  [7] instantiate(; kwargs::@Kwargs{})
    @ Pkg.API /cache/julia-latest-linux-x86_64/share/julia/stdlib/v1.12/Pkg/src/API.jl:1170

I didn't dig into the details of why, but I think this happens when instantiating a manifest with packages that i) can't be installed from the package server (so it fallsback to git) and ii) are added by version (i.e. not a branch etc) from a (missing) registry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant