diff --git a/Library/Homebrew/github_packages.rb b/Library/Homebrew/github_packages.rb index dd0eefed30..f59220ea7b 100644 --- a/Library/Homebrew/github_packages.rb +++ b/Library/Homebrew/github_packages.rb @@ -356,11 +356,14 @@ class GitHubPackages documentation = "https://formulae.brew.sh/formula/#{formula_name}" if formula_core_tap + local_file_size = File.size(local_file) + descriptor_annotations_hash = { "org.opencontainers.image.ref.name" => tag, "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.tab" => tab.to_json, }.reject { |_, v| v.blank? }