Skip to content

Commit 05b9cd8

Browse files
committed
Fix ci/show_versions.jl
1 parent a139c20 commit 05b9cd8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ci/show_versions.jl

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
for line in split(strip(readstring("REQUIRE")), '\n')[2:end]
2-
name = split(line)[1]
3-
println(name, "\t", Pkg.installed(name))
1+
if VERSION >= v"0.7.0-"
2+
using Pkg
3+
show(stdout, "text/plain", Pkg.installed())
4+
println()
5+
else
6+
for line in split(strip(readstring("REQUIRE")), '\n')[2:end]
7+
name = split(line)[1]
8+
println(name, "\t", Pkg.installed(name))
9+
end
410
end

0 commit comments

Comments
 (0)