From 7e6a33835fc8d8bc68285f5a0210ad8a2fdec8b0 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Sun, 6 Sep 2020 12:06:29 -0500 Subject: [PATCH] Fixes for nightly --- src/CodeTracking.jl | 3 ++- test/runtests.jl | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CodeTracking.jl b/src/CodeTracking.jl index 391f230..d34fac8 100644 --- a/src/CodeTracking.jl +++ b/src/CodeTracking.jl @@ -296,7 +296,8 @@ pkgfiles(name::AbstractString, uuid::UUID) = pkgfiles(PkgId(uuid, name)) function pkgfiles(name::AbstractString) project = Base.active_project() # The value returned by Base.project_deps_get depends on the Julia version - id = Base.project_deps_get(project, name) + id = isdefined(Base, :TOMLCache) ? Base.project_deps_get(project, name, Base.TOMLCache()) : + Base.project_deps_get(project, name) (id == false || id === nothing) && error("no package ", name, " recognized") return isa(id, PkgId) ? pkgfiles(id) : pkgfiles(name, id) end diff --git a/test/runtests.jl b/test/runtests.jl index 5803393..ebefeca 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -20,7 +20,6 @@ isdefined(Main, :Revise) ? Main.Revise.includet("script.jl") : include("script.j stacktrace(catch_backtrace()) end @test whereis(trace[2]) == (scriptpath, 9) - @test whereis(trace[3]) === nothing src, line = definition(String, m) @test src == chomp("""