Skip to content

Commit

Permalink
Fix temp install of BugReporting.jl (#40403)
Browse files Browse the repository at this point in the history
Fixes #40398

(cherry picked from commit f021c67)
  • Loading branch information
fredrikekre authored and staticfloat committed Dec 22, 2022
1 parent 3a83ce8 commit 4506f31
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 4506f31

Please sign in to comment.