|
62 | 62 | # of the two situations it is. |
63 | 63 | for attempt in 1 2 3 4 5 6; do |
64 | 64 | xlings update > /dev/null 2>&1 || true |
65 | | - if xlings install "mcpp@$MCPP_VERSION" -y -g; then break; fi |
| 65 | + if # ⚠️ THE PIN MAY NAME THE RELEASE THIS RUN IS VALIDATING, which does |
| 66 | + # not exist yet — that is the whole point of MCPP_SOURCE_REF. Bootstrap |
| 67 | + # from whatever the index has; the step below replaces it with the |
| 68 | + # build under review, and the pin is what an ordinary run tests. |
| 69 | + if [ -n "${MCPP_SOURCE_REF:-}" ]; then |
| 70 | + xlings install mcpp -y -g |
| 71 | + else |
| 72 | + xlings install "mcpp@$MCPP_VERSION" -y -g |
| 73 | + fi; then break; fi |
66 | 74 | if [ "$attempt" = 6 ]; then |
67 | 75 | echo "::error::mcpp@$MCPP_VERSION never appeared in the index (6 attempts over 5 minutes). If it was just released, the pointer has not propagated; if the pin names a version that was never published, it never will." |
68 | 76 | exit 1 |
@@ -260,7 +268,15 @@ jobs: |
260 | 268 | # of the two situations it is. |
261 | 269 | for attempt in 1 2 3 4 5 6; do |
262 | 270 | xlings update > /dev/null 2>&1 || true |
263 | | - if xlings install "mcpp@$MCPP_VERSION" -y -g; then break; fi |
| 271 | + if # ⚠️ THE PIN MAY NAME THE RELEASE THIS RUN IS VALIDATING, which does |
| 272 | + # not exist yet — that is the whole point of MCPP_SOURCE_REF. Bootstrap |
| 273 | + # from whatever the index has; the step below replaces it with the |
| 274 | + # build under review, and the pin is what an ordinary run tests. |
| 275 | + if [ -n "${MCPP_SOURCE_REF:-}" ]; then |
| 276 | + xlings install mcpp -y -g |
| 277 | + else |
| 278 | + xlings install "mcpp@$MCPP_VERSION" -y -g |
| 279 | + fi; then break; fi |
264 | 280 | if [ "$attempt" = 6 ]; then |
265 | 281 | echo "::error::mcpp@$MCPP_VERSION never appeared in the index (6 attempts over 5 minutes). If it was just released, the pointer has not propagated; if the pin names a version that was never published, it never will." |
266 | 282 | exit 1 |
|
0 commit comments