Skip to content

Commit

Permalink
Correctly support old manifests.
Browse files Browse the repository at this point in the history
  • Loading branch information
GunnarFarneback committed Aug 1, 2023
1 parent 771d5d8 commit b735d48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/LocalRegistry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,10 @@ function find_package_path(package_name::AbstractString)
end

manifest = get_current_manifest()
if VersionNumber(get(manifest, "manifest_format", "1")) > v"2.0"
manifest_format = VersionNumber(get(manifest, "manifest_format", "1"))
if manifest_format == v"1"
manifest = Dict("deps" => manifest)
elseif manifest_format > v"2.0"
@warn("Unsupported manifest format, trying anyway.")
end
deps = manifest["deps"]
Expand Down

0 comments on commit b735d48

Please sign in to comment.