From 13e82ae2e2a6087dc47b4859bd6057337e91e0e3 Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 21 Jun 2023 02:07:39 +0100 Subject: [PATCH] fixes --- base/loading.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/loading.jl b/base/loading.jl index 936b33ab74144..44aac19094685 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -1378,9 +1378,9 @@ Returns whether a given PkgId within the active project is precompiled. function isprecompiled(pkg::PkgId; stale_cache::Dict{StaleCacheKey,Bool}=Dict{StaleCacheKey, Bool}(), cachepaths::Vector{String}=Base.find_all_in_cache_path(pkg), - sourcepath::String=Base.locate_package(pkg) + sourcepath::Union{String,Nothing}=Base.locate_package(pkg) ) - isnothing(sourcepath) && error("Cannot locate source for $(repr(PkgId))") + isnothing(sourcepath) && error("Cannot locate source for $(repr(pkg))") for path_to_try in cachepaths staledeps = stale_cachefile(sourcepath, path_to_try, ignore_loaded = true) if staledeps === true