Skip to content

Commit ca3d331

Browse files
authored
Pick the carbon toolchain tarball by name, not position (#2578)
1 parent 2ab8579 commit ca3d331

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎bin/yaml/carbon.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ compilers:
99
create_untar_dir: true
1010
url: https://api.github.com/repos/carbon-language/carbon-lang/releases
1111
query: |
12-
[item for item in document if item["{{version}}"]][0]['assets'][0]['browser_download_url']
12+
[asset['browser_download_url'] for item in document if item["{{version}}"] for asset in item['assets'] if asset['name'].startswith('carbon_toolchain-')][0]
1313
targets:
1414
- name: trunk
1515
if: nightly

0 commit comments

Comments
 (0)