Skip to content

Commit

Permalink
Workaround issue when internal code loading function gives a path to …
Browse files Browse the repository at this point in the history
…entry file instead of directory to package
  • Loading branch information
Kristoffer Carlsson authored Feb 20, 2024
1 parent dbbeb35 commit 0227f3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pkgs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,10 @@ function manifest_paths!(pkgpaths::Dict, manifest_file::String)
id = PkgId(UUID(entry["uuid"]::String), name)
path = Base.explicit_manifest_entry_path(manifest_file, id, entry)
if path !== nothing
if isfile(path)
# Workaround for #802
path = dirname(dirname(path))
end
pkgpaths[id] = path
end
end
Expand Down

0 comments on commit 0227f3a

Please sign in to comment.