Skip to content

Commit 0227f3a

Browse files
author
Kristoffer Carlsson
authored
Workaround issue when internal code loading function gives a path to entry file instead of directory to package
1 parent dbbeb35 commit 0227f3a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pkgs.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,10 @@ function manifest_paths!(pkgpaths::Dict, manifest_file::String)
409409
id = PkgId(UUID(entry["uuid"]::String), name)
410410
path = Base.explicit_manifest_entry_path(manifest_file, id, entry)
411411
if path !== nothing
412+
if isfile(path)
413+
# Workaround for #802
414+
path = dirname(dirname(path))
415+
end
412416
pkgpaths[id] = path
413417
end
414418
end

0 commit comments

Comments
 (0)