Skip to content

Commit

Permalink
Don't throw for missing Versions.toml in the registry,
Browse files Browse the repository at this point in the history
instead consider that the same as no versions, i.e.
an empty existing file.

(cherry picked from commit 5e05aaf, PR #1016)
  • Loading branch information
fredrikekre committed Feb 11, 2019
1 parent 995d16b commit 19d1602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function find_installed(name::String, uuid::UUID, sha1::SHA1)
end

function load_versions(path::String)
toml = parse_toml(path, "Versions.toml")
toml = parse_toml(path, "Versions.toml"; fakeit=true)
return Dict{VersionNumber, SHA1}(VersionNumber(ver) => SHA1(info["git-tree-sha1"]) for (ver, info) in toml)
end

Expand Down

0 comments on commit 19d1602

Please sign in to comment.