Skip to content

Commit

Permalink
Fixed issue with building modules added by URL
Browse files Browse the repository at this point in the history
Signed-off-by: Ole Herman Schumacher Elgesem <[email protected]>
  • Loading branch information
craigcomstock authored and olehermanse committed Sep 30, 2022
1 parent 88fa35d commit c1e4db2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cfbs/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,10 @@ def _download_dependencies(
if not os.path.exists(module_dir):
if url.endswith(SUPPORTED_ARCHIVES):
fetch_archive(url, commit)
elif "index" in module or ignore_versions:
# a couple of cases where there will not be an archive available:
# - using an alternate index (index property in module data)
# - added by URL instead of name (no version property in module data)
elif "index" in module or "url" in module or ignore_versions:
sh("git clone %s %s" % (url, commit_dir))
sh("(cd %s && git checkout %s)" % (commit_dir, commit))
else:
Expand Down

0 comments on commit c1e4db2

Please sign in to comment.