julia.withPackages: fix for overrides not in a registry

This commit is contained in:
thomasjm
2024-07-03 18:12:44 -07:00
parent 2694a7a96f
commit 729e2822ff
3 changed files with 59 additions and 23 deletions
@@ -56,7 +56,8 @@ for (uuid, versions) in uuid_to_versions.items():
# Write nothing in Compat.toml, because we've already resolved everything
with open(out_path / path / Path("Deps.toml"), "w") as f:
f.write('["%s"]\n' % info["version"])
toml.dump(project["deps"], f)
if "deps" in project:
toml.dump(project["deps"], f)
with open(out_path / path / Path("Versions.toml"), "w") as f:
f.write('["%s"]\n' % info["version"])
f.write('git-tree-sha1 = "%s"\n' % info["treehash"])