Skip to content

Commit 759634e

Browse files
authored
Insert a / if the default URL is used (#80)
We expect the base URL to not have a slash when provided externally, this fixes the full URL when that is the case.
1 parent 3b5c2b7 commit 759634e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mojo/extensions.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ _NULL_SHAS = {
2727

2828
def _mojo_toolchain_impl(rctx):
2929
for whl in "mojo_compiler", "mojo_compiler_mojo_libs":
30-
base_url = (rctx.attr.base_url or "https://whl.modular.com/nightly/") + whl.replace("_", "-")
30+
base_url = (rctx.attr.base_url or "https://whl.modular.com/nightly") + "/" + whl.replace("_", "-")
3131
platform = _PLATFORM_MAPPINGS[rctx.attr.platform] if whl == "mojo_compiler" else "any"
3232
sha_key = rctx.attr.platform if whl == "mojo_compiler" else "mojo_compiler_mojo_libs"
3333
rctx.download_and_extract(

0 commit comments

Comments
 (0)