Skip to content

Commit

Permalink
Fix CI on Julia nightly (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge committed Dec 24, 2021
1 parent d98259c commit bf7c13b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/generate_install_packages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@ function _generate_install_packages_content(config::Config)
"Pkg.add(name)",
"Pkg.test(name)",
"end",
"Pkg.add(collect(values(Pkg.Types.stdlibs())))",
"if Base.VERSION >= v\"1.8-\"",
"stdlib_names = first.(collect(values(Pkg.Types.stdlibs())))",
"else",
"stdlib_names = collect(values(Pkg.Types.stdlibs()))",
"end",
"Pkg.add(stdlib_names)",
"for (uuid, info) in Pkg.dependencies()",
"Pkg.add(info.name)",
"end",
Expand Down
4 changes: 4 additions & 0 deletions src/generate_packagecompiler_run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ function _generate_packagecompiler_run_content(config::Config)
"import Pkg",

"all_stdlib_uuids = collect(keys(Pkg.Types.stdlibs()))",
"if Base.VERSION >= v\"1.8-\"",
"all_stdlib_names = first.(collect(values(Pkg.Types.stdlibs())))",
"else",
"all_stdlib_names = collect(values(Pkg.Types.stdlibs()))",
"end",

"pkgnames = Vector{String}(undef, 0)",
"for (uuid, info) in Pkg.dependencies()",
Expand Down

0 comments on commit bf7c13b

Please sign in to comment.