Skip to content

Commit

Permalink
More informative missing weakdep error (#3610)
Browse files Browse the repository at this point in the history
(cherry picked from commit b70857c)
  • Loading branch information
tecosaur authored and IanButterworth committed Oct 4, 2024
1 parent ada705e commit cab7300
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2210,6 +2210,9 @@ function status_ext_info(pkg::PackageSpec, env::EnvCache)
# Check if deps are loaded
extdeps_info= Tuple{String, Bool}[]
for extdep in extdeps
haskey(weakdepses, extdep) ||
pkgerror(isnothing(pkg.name) ? "M" : "$(pkg.name) has a m",
"alformed Project.toml, the extension package $extdep is not listed in [weakdeps]")
uuid = weakdepses[extdep]
loaded = haskey(Base.loaded_modules, Base.PkgId(uuid, extdep))
push!(extdeps_info, (extdep, loaded))
Expand Down

0 comments on commit cab7300

Please sign in to comment.