Skip to content

Commit

Permalink
dont assume we can find source code for loaded packages (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Carlsson authored Apr 22, 2020
1 parent 99c2955 commit 7f57a53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pkgs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ end
# that's easier to precompile. (This is a hotspot in loading Revise.)
function filter_valid_cachefiles(sourcepath, paths)
fpaths = String[]
sorcepath === nothing && return fpaths

This comment has been minimized.

Copy link
@stev47

stev47 Apr 22, 2020

sourcepath

This comment has been minimized.

Copy link
@alyst

alyst Apr 22, 2020

for path in paths
if Base.stale_cachefile(sourcepath, path) !== true
push!(fpaths, path)
Expand Down

0 comments on commit 7f57a53

Please sign in to comment.