From 66b6f3742d78e3f0b88cb6e997074c47ca28622a Mon Sep 17 00:00:00 2001 From: Paul Berg Date: Tue, 1 Feb 2022 15:56:18 +0100 Subject: [PATCH] fix is_stdlib() for nightly and enable nightly tests (#1874) --- src/packages/PkgCompat.jl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/packages/PkgCompat.jl b/src/packages/PkgCompat.jl index 9d5d812385..ff79a30176 100644 --- a/src/packages/PkgCompat.jl +++ b/src/packages/PkgCompat.jl @@ -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())