Skip to content

Recent master fails make test-trimming with LazyLibrary error #59242

@timholy

Description

@timholy
tim@hypnotic:~/src/julia$ make test-trimming
Whitespace check found no issues.
Info Given Pkg was explicitly requested, output will be shown live
ERROR: LoadError: MethodError: Cannot `convert` an object of type String to an object of type Base.Libc.Libdl.LazyLibrary
The function `convert` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  Base.Libc.Libdl.LazyLibrary(::Any; flags, dependencies, on_load_callback)
   @ Base libdl.jl:388
  convert(::Type{T}, ::T) where T
   @ Base Base_compiler.jl:136

Stacktrace:
  [1] setindex!
    @ ./array.jl:994 [inlined]
  [2] (::Base.var"#getindex##2#getindex##3"{Vector{Base.Libc.Libdl.LazyLibrary}})(i::Int64, v::String)
    @ Base ./array.jl:419
  [3] afoldl(::Base.var"#getindex##2#getindex##3"{Vector{Base.Libc.Libdl.LazyLibrary}}, ::Int64, ::Base.Libc.Libdl.LazyLibrary, ::String, ::Base.Libc.Libdl.LazyLibrary, ::Base.Libc.Libdl.LazyLibrary, ::Base.Libc.Libdl.LazyLibrary, ::Base.Libc.Libdl.LazyLibrary)
    @ Base ./operators.jl:601
  [4] getindex(::Type{Base.Libc.Libdl.LazyLibrary}, ::Base.Libc.Libdl.LazyLibrary, ::String, ::Base.Libc.Libdl.LazyLibrary, ::Vararg{Base.Libc.Libdl.LazyLibrary})
    @ Base ./array.jl:418
  [5] top-level scope
    @ ~/src/julia/usr/share/julia/stdlib/v1.13/LibCURL_jll/src/LibCURL_jll.jl:41
  [6] include(mod::Module, _path::String)
    @ Base ./Base.jl:311
  [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base ./loading.jl:3001
  [8] top-level scope
    @ stdin:5
  [9] eval(m::Module, e::Any)
    @ Core ./boot.jl:489
 [10] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ./loading.jl:2847
 [11] include_string
    @ ./loading.jl:2857 [inlined]
 [12] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:318
 [13] _start()
    @ Base ./client.jl:553
in expression starting at /home/tim/src/julia/usr/share/julia/stdlib/v1.13/LibCURL_jll/src/LibCURL_jll.jl:5
in expression starting at stdin:5

although

tim@hypnotic:~/src/julia$ ./julia --startup-file=no -q
julia> using Pkg

julia>

works just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions