Skip to content

Commit

Permalink
fix is_stdlib() for nightly and enable nightly tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pangoraw committed Jan 30, 2022
1 parent c4a0f53 commit 4b220b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion src/packages/PkgCompat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 4b220b3

Please sign in to comment.