From 4b220b344ef3d90b73919167689831d929538e5d Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 30 Jan 2022 16:52:03 +0100 Subject: [PATCH] fix is_stdlib() for nightly and enable nightly tests --- .github/workflows/Test.yml | 2 +- src/packages/PkgCompat.jl | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Test.yml b/.github/workflows/Test.yml index eaa6a1ff72..f6b38090b6 100644 --- a/.github/workflows/Test.yml +++ b/.github/workflows/Test.yml @@ -29,7 +29,7 @@ jobs: strategy: matrix: # We test quite a lot of versions because we do some OS and version specific things unfortunately - julia-version: ["1.5", "1.6", "1.7"] #, "nightly"] + julia-version: ["1.5", "1.6", "1.7", "nightly"] os: [ubuntu-latest, macOS-latest, windows-latest] steps: diff --git a/src/packages/PkgCompat.jl b/src/packages/PkgCompat.jl index 9d5d812385..06eebe577a 100644 --- a/src/packages/PkgCompat.jl +++ b/src/packages/PkgCompat.jl @@ -215,7 +215,12 @@ end # (⚠️ Internal API with fallback) _stdlibs() = try - values(Pkg.Types.stdlibs()) + stdlibs = values(Pkg.Types.stdlibs()) + if VERSION > v"1.8.0-" + first.(stdlibs) + else + stdlibs + end::Vector{String} catch e @warn "Pkg compat: failed to load standard libraries." exception=(e,catch_backtrace())