Skip to content

Commit

Permalink
fix is_stdlib() for nightly and enable nightly tests (#1874)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pangoraw authored and pankgeorg committed Feb 1, 2022
1 parent 59846f2 commit 66b6f37
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/packages/PkgCompat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,15 @@ end

# (⚠️ Internal API with fallback)
_stdlibs() = try
values(Pkg.Types.stdlibs())
stdlibs = values(Pkg.Types.stdlibs())
T = eltype(stdlibs)
if T == String
stdlibs
elseif T <: Tuple{String,Any}
first.(stdlibs)
else
error()
end
catch e
@warn "Pkg compat: failed to load standard libraries." exception=(e,catch_backtrace())

Expand Down

0 comments on commit 66b6f37

Please sign in to comment.