From 990feb59a4e5685bcb837922d3f0e11eabe9bf39 Mon Sep 17 00:00:00 2001 From: Henry Mercer Date: Mon, 23 Sep 2024 19:05:09 +0100 Subject: [PATCH] Catch gotcha in PR check workflow generator --- pr-checks/sync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pr-checks/sync.py b/pr-checks/sync.py index e9da5d0491..7887d3723c 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -65,7 +65,10 @@ def writeHeader(checkStream): matrix = [] excludedOsesAndVersions = checkSpecification.get('excludeOsAndVersionCombination', []) for version in checkSpecification.get('versions', defaultTestVersions): - runnerImages = ["ubuntu-latest", "macos-latest", "windows-latest"] + if version == "latest": + raise ValueError('Did not recognize "version: latest". Did you mean "version: linked"?') + + runnerImages = ["ubuntu-latest", "macos-latest", "windows-latest"] operatingSystems = checkSpecification.get('operatingSystems', ["ubuntu", "macos", "windows"]) for operatingSystem in operatingSystems: