Skip to content

Commit

Permalink
Merge pull request #13283 from Bo98/ghp-comment
Browse files Browse the repository at this point in the history
github_packages: add comment for image-spec pin
  • Loading branch information
MikeMcQuaid authored May 16, 2022
2 parents 0275b32 + ecc7058 commit 8a5f664
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Library/Homebrew/github_packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ def load_schemas!
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)
Expand Down

0 comments on commit 8a5f664

Please sign in to comment.