Skip to content

Commit fcfda29

Browse files
authored
Allow no known shas (#7)
This allows arbitrary versions as long as the default URL scheme works. I don't see any warnings from this which surprises me, but at least it works at all.
1 parent 669dab8 commit fcfda29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mojo/extensions.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def _mojo_toolchain_impl(rctx):
2121
rctx.attr.version,
2222
_PLATFORM_MAPPINGS[rctx.attr.platform],
2323
),
24-
sha256 = _KNOWN_SHAS[rctx.attr.version][rctx.attr.platform],
24+
sha256 = _KNOWN_SHAS.get(rctx.attr.version, {}).get(rctx.attr.platform, ""),
2525
type = "zip",
2626
strip_prefix = "max-{}.data/platlib/max".format(rctx.attr.version),
2727
)

0 commit comments

Comments
 (0)