Assume recipe type is git if not specified

Fixes fetch failure for x-face-e21.

Noticed through upcoming improvement to test coverage.
This commit is contained in:
Marien Zwart 2024-05-26 17:06:27 +10:00
parent 48ba3bb39c
commit 91e89099d2
No known key found for this signature in database

View file

@ -243,7 +243,7 @@ let
url =
if (p.recipe.host or "") == "github" && p ? recipe.repo
then "https://github.com/${p.recipe.repo}"
else if (p.recipe.type or "") == "git"
else if (p.recipe.type or "git") == "git"
&& p ? recipe.repo
&& (p.recipe.host or null) == null
then p.recipe.repo