Skip to content

MethodError: no method matching registry_info(::Pkg.Registry.PkgEntry) in v1.13 #4535

@giordano

Description

@giordano

https://github.com/JuliaPackaging/BinaryBuilderBase.jl/actions/runs/19646636563/job/56263303509?pr=454#step:7:122

Setup: Error During Test at /home/runner/work/BinaryBuilderBase.jl/BinaryBuilderBase.jl/test/dependencies.jl:162
  Test threw exception
  Expression: BinaryBuilderBase.get_addable_spec("LLVM_jll", v"13.0.0+2") == PackageSpec(name = "LLVM_jll", uuid = "86de99a1-58d6-5da7-8064-bd56ce2e322c", tree_hash = Base.SHA1("83481d62501cf2ef22bed745dbcedc4e75fa6e95"), version = PKG_VERSIONS.VersionSpec("*"), url = "https://github.com/JuliaBinaryWrappers/LLVM_jll.jl.git", rev = "2772761b330d51146ace3125b26acdad0df4f30f")
  MethodError: no method matching registry_info(::Pkg.Registry.PkgEntry)
  The function `registry_info` exists, but no method is defined for this combination of argument types.
  Closest candidates are:
    registry_info(::Pkg.Registry.RegistryInstance, ::Pkg.Registry.PkgEntry)
     @ Pkg /opt/hostedtoolcache/julia/1.13-nightly/x64/share/julia/stdlib/v1.13/Pkg/src/Registry/registry_instance.jl:485
  Stacktrace:
   [1] get_addable_spec(name::String, version::VersionNumber; ctx::Pkg.Types.Context, verbose::Bool)
     @ BinaryBuilderBase ~/work/BinaryBuilderBase.jl/BinaryBuilderBase.jl/src/Prefix.jl:616
   [2] get_addable_spec(name::String, version::VersionNumber)
     @ BinaryBuilderBase ~/work/BinaryBuilderBase.jl/BinaryBuilderBase.jl/src/Prefix.jl:599
   [3] top-level scope
     @ ~/work/BinaryBuilderBase.jl/BinaryBuilderBase.jl/test/dependencies.jl:34
   [4] macro expansion
     @ /opt/hostedtoolcache/julia/1.13-nightly/x64/share/julia/stdlib/v1.13/Test/src/Test.jl:1961 [inlined]
   [5] macro expansion
     @ ~/work/BinaryBuilderBase.jl/BinaryBuilderBase.jl/test/dependencies.jl:162 [inlined]
   [6] macro expansion
     @ /opt/hostedtoolcache/julia/1.13-nightly/x64/share/julia/stdlib/v1.13/Test/src/Test.jl:1961 [inlined]
   [7] macro expansion
     @ ~/work/BinaryBuilderBase.jl/BinaryBuilderBase.jl/test/dependencies.jl:162 [inlined]
   [8] macro expansion
     @ /opt/hostedtoolcache/julia/1.13-nightly/x64/share/julia/stdlib/v1.13/Test/src/Test.jl:750 [inlined]

This works in v1.12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    binarybuilderRelated to the use of Pkg in BinaryBuilder

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions