Skip to content

Commit

Permalink
Fix temp install of BugReporting.jl (JuliaLang#40403)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre authored and johanmon committed Jul 5, 2021
1 parent e5c4f4a commit 678754f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/InteractiveUtils/src/InteractiveUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,12 @@ function report_bug(kind)
mktempdir() do tmp
old_load_path = copy(LOAD_PATH)
push!(empty!(LOAD_PATH), joinpath(tmp, "Project.toml"))
old_active_project = Base.ACTIVE_PROJECT[]
Base.ACTIVE_PROJECT[] = nothing
Pkg.add(Pkg.PackageSpec(BugReportingId.name, BugReportingId.uuid))
BugReporting = Base.require(BugReportingId)
append!(empty!(LOAD_PATH), old_load_path)
Base.ACTIVE_PROJECT[] = old_active_project
end
end
else
Expand Down

0 comments on commit 678754f

Please sign in to comment.