From f35008e4f8ed420fc1a44d88bc90d68e0105eba5 Mon Sep 17 00:00:00 2001 From: Rich Lander Date: Sun, 5 Apr 2026 22:58:24 -0700 Subject: [PATCH] [infra] Fix jq example in update-os-coverage skill Use jq -e with any(...) in the image-info tag verification example so a missing tag fails explicitly instead of exiting successfully with no output. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/skills/update-os-coverage/SKILL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/skills/update-os-coverage/SKILL.md b/.github/skills/update-os-coverage/SKILL.md index 35a6fd28f95e51..6110b1c7f315f6 100644 --- a/.github/skills/update-os-coverage/SKILL.md +++ b/.github/skills/update-os-coverage/SKILL.md @@ -94,7 +94,7 @@ Before making any changes, confirm the **exact target container tag** exists in ```bash TARGET_TAG="" curl -sL https://github.com/dotnet/versions/raw/refs/heads/main/build-info/docker/image-info.dotnet-dotnet-buildtools-prereqs-docker-main.json \ - | jq -r --arg tag "$TARGET_TAG" '[.repos[].images[].platforms[].simpleTags[]] | unique | map(select(. == $tag)) | .[]' + | jq -e --arg tag "$TARGET_TAG" 'any(.repos[].images[].platforms[].simpleTags[]; . == $tag)' ``` If the exact tag is **not found in `image-info`**, stop and inform the user. Treat that as authoritative even if a registry lookup appears to work. The image must be created first at [dotnet/dotnet-buildtools-prereqs-docker](https://github.com/dotnet/dotnet-buildtools-prereqs-docker). Check if an open issue or PR already exists, for example: