Skip to content

Commit 59a9253

Browse files
authored
Limit compiler version target to (major, minor) for capabilities (#1288)
Otherwise, this fails when specifying a compiler version with a patch version. Specifying a patch version is important for e.g. Jetpack Compose, where versions are tied explicitly to compiler verions specifying the patch version. But AFAIK we shoudln't need to distinguish different capabilities across patch versions.
1 parent 3a94ba3 commit 59a9253

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/starlark/core/repositories/compiler.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def _parse_version(basename):
7070
def _get_capability_template(compiler_version, templates):
7171
version_index = {}
7272
target = _version(compiler_version)
73+
if len(target) > 2:
74+
target = target[0:2]
7375
for template in templates:
7476
version = _parse_version(template.basename)
7577
if not version:

0 commit comments

Comments
 (0)