Skip to content

Commit

Permalink
Add Tar and ArgTools stdlibs (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonschaub authored Oct 6, 2020
1 parent 10b6096 commit a39aa84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/recipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ if VERSION >= v"1.6.0-DEV.938" # https://github.com/JuliaLang/julia/pull/37340
push!(stdlib_names, :MozillaCACerts_jll)
push!(stdlib_names, :Downloads)
end
if VERSION >= v"1.6.0-DEV.1087" # https://github.com/JuliaLang/julia/pull/37763
push!(stdlib_names, :Tar)
push!(stdlib_names, :ArgTools)
end

# This replacement is needed because the path written during compilation differs from
# the git source path
Expand Down
7 changes: 6 additions & 1 deletion test/sigtest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ module Lowering end
end

for lib in Revise.stdlib_names
lib in (:OldPkg, :TOML, :Artifacts, :LibCURL, :LibCURL_jll, :MozillaCACerts_jll, :Downloads) && continue
lib in (
:OldPkg, :TOML, :Artifacts, :LibCURL, :LibCURL_jll, :MozillaCACerts_jll,
:Downloads, :Tar, :ArgTools,
) && continue
@eval using $lib
end
basefiles = Set{String}()
Expand All @@ -102,6 +105,8 @@ basefiles = Set{String}()
endswith(file, "Artifacts.jl") && continue
endswith(file, "TOML.jl") && continue
endswith(file, "Downloads.jl") && continue
endswith(file, "Tar.jl") && continue
endswith(file, "ArgTools.jl") && continue
file = Revise.fixpath(file)
push!(basefiles, reljpath(file))
mexs = Revise.parse_source(file, mod)
Expand Down

0 comments on commit a39aa84

Please sign in to comment.