Skip to content

Commit 85d5578

Browse files
authored
Explicitly check if manifest paths are Strings (timholy#809)
`Base.explicit_manifest_entry_path()` can return either a String, `missing`, or `nothing`, but previously `manifest_paths!()` was assuming the result was either a String or `nothing`.
1 parent 7568b09 commit 85d5578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pkgs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ function manifest_paths!(pkgpaths::Dict, manifest_file::String)
408408
for entry in entries
409409
id = PkgId(UUID(entry["uuid"]::String), name)
410410
path = Base.explicit_manifest_entry_path(manifest_file, id, entry)
411-
if path !== nothing
411+
if path isa String
412412
if isfile(path)
413413
# Workaround for #802
414414
path = dirname(dirname(path))

0 commit comments

Comments
 (0)