We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ec705a commit 940c820Copy full SHA for 940c820
1 file changed
cfbs/cfbs_config.py
@@ -386,16 +386,20 @@ def add_command(
386
387
before = {m["name"] for m in self.get("build", [])}
388
389
- if to_add[0].endswith(SUPPORTED_ARCHIVES) or to_add[0].startswith(
390
- SUPPORTED_URI_SCHEMES
391
- ):
+ if to_add[0].startswith(SUPPORTED_URI_SCHEMES):
392
self._add_using_url(
393
url=to_add[0],
394
to_add=to_add[1:],
395
added_by=added_by,
396
checksum=checksum,
397
)
398
else:
+ # for this `if` to be valid, module names containing `://` should be illegal
+ if "://" in to_add[0]:
399
+ user_error(
400
+ "URI scheme not supported. The supported URI schemes are: "
401
+ + ", ".join(SUPPORTED_URI_SCHEMES)
402
+ )
403
self._add_modules(to_add, added_by, checksum)
404
405
added = {m["name"] for m in self["build"]}.difference(before)
0 commit comments