From a196d334822320c4a567297ba551e68e73ced1fa Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Mon, 17 Apr 2023 23:17:20 +0800 Subject: [PATCH] github_packages: fix bottle manifest schema violation According to [^1] [^2], image manifest annotations need to be a string-string map. This should fix the errors seen in Homebrew/homebrew-core#128517, Homebrew/homebrew-core#128558, et al. [^1]: https://github.com/opencontainers/image-spec/blob/2879913ce4bc229704bf0d67b280929007b06b94/schema/image-manifest-schema.json#L35 [^2]: https://github.com/opencontainers/image-spec/blob/2879913ce4bc229704bf0d67b280929007b06b94/schema/defs-descriptor.json#L22 --- Library/Homebrew/github_packages.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/github_packages.rb b/Library/Homebrew/github_packages.rb index f59220ea7b..0cfec06f97 100644 --- a/Library/Homebrew/github_packages.rb +++ b/Library/Homebrew/github_packages.rb @@ -363,7 +363,7 @@ class GitHubPackages "sh.brew.bottle.cpu.variant" => cpu_variant, "sh.brew.bottle.digest" => tar_gz_sha256, "sh.brew.bottle.glibc.version" => glibc_version, - "sh.brew.bottle.size" => local_file_size, + "sh.brew.bottle.size" => local_file_size.to_s, "sh.brew.tab" => tab.to_json, }.reject { |_, v| v.blank? }