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 a05a1e3
Show file tree
Hide file tree
Showing 2 changed files with 9 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
9 changes: 8 additions & 1 deletion src/packages/PkgCompat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,14 @@ end

# (⚠️ Internal API with fallback)
_stdlibs() = try
values(Pkg.Types.stdlibs())
stdlibs = values(Pkg.Types.stdlibs())
stdlibs = if VERSION > v"1.8.0-"
first.(stdlibs)
else
stdlibs
end
@assert eltype(stdlibs) == String
stdlibs
catch e
@warn "Pkg compat: failed to load standard libraries." exception=(e,catch_backtrace())

Expand Down

0 comments on commit a05a1e3

Please sign in to comment.