Skip to content

Commit 639325e

Browse files
fredrikekreKristofferC
authored andcommitted
Fix temp install of BugReporting.jl (#40403)
Fixes #40398 (cherry picked from commit f021c67)
1 parent fefe955 commit 639325e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

stdlib/InteractiveUtils/src/InteractiveUtils.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,12 @@ function report_bug(kind)
396396
mktempdir() do tmp
397397
old_load_path = copy(LOAD_PATH)
398398
push!(empty!(LOAD_PATH), joinpath(tmp, "Project.toml"))
399+
old_active_project = Base.ACTIVE_PROJECT[]
400+
Base.ACTIVE_PROJECT[] = nothing
399401
Pkg.add(Pkg.PackageSpec(BugReportingId.name, BugReportingId.uuid))
400402
BugReporting = Base.require(BugReportingId)
401403
append!(empty!(LOAD_PATH), old_load_path)
404+
Base.ACTIVE_PROJECT[] = old_active_project
402405
end
403406
end
404407
else

0 commit comments

Comments
 (0)