Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Jun 29, 2023
1 parent 4039ee1 commit 13e82ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13e82ae

Please sign in to comment.