github_packages: add comment for image-spec pin

This commit is contained in:
Bo Anderson 2022-05-16 16:15:17 +01:00
parent c20b3ab913
commit ecc705803f
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -151,6 +151,9 @@ class GitHubPackages
end end
def schema_uri(basename, uris) 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" url = "https://raw.githubusercontent.com/opencontainers/image-spec/170393e57ed656f7f81c3070bfa8c3346eaa0a5a/schema/#{basename}.json"
out, = curl_output(url) out, = curl_output(url)
json = JSON.parse(out) json = JSON.parse(out)