From ecc705803f0d78b5a702a313d247c59135016347 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Mon, 16 May 2022 16:15:17 +0100 Subject: [PATCH] github_packages: add comment for image-spec pin --- Library/Homebrew/github_packages.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/github_packages.rb b/Library/Homebrew/github_packages.rb index 7231ca696c..7943752790 100644 --- a/Library/Homebrew/github_packages.rb +++ b/Library/Homebrew/github_packages.rb @@ -151,6 +151,9 @@ class GitHubPackages end def schema_uri(basename, uris) + # The current `main` version has an invalid JSON schema. + # Going forward, this should probably be pinned to tags. + # We currently use features newer than the last one (v1.0.2). url = "https://raw.githubusercontent.com/opencontainers/image-spec/170393e57ed656f7f81c3070bfa8c3346eaa0a5a/schema/#{basename}.json" out, = curl_output(url) json = JSON.parse(out)