Merge pull request #18177 from Homebrew/bottle-created

This commit is contained in:
Mike McQuaid 2024-09-02 16:19:31 +01:00 committed by GitHub
commit 9665348b63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -685,7 +685,9 @@ module Homebrew
"root_url" => bottle.root_url, "root_url" => bottle.root_url,
"cellar" => bottle_cellar.to_s, "cellar" => bottle_cellar.to_s,
"rebuild" => bottle.rebuild, "rebuild" => bottle.rebuild,
"date" => Pathname(filename.to_s).mtime.strftime("%F"), # date is used for org.opencontainers.image.created which is an RFC 3339 date-time.
# Time#iso8601 produces an XML Schema date-time that meets RFC 3339 ABNF.
"date" => Pathname(filename.to_s).mtime.utc.iso8601,
"tags" => { "tags" => {
bottle_tag.to_s => { bottle_tag.to_s => {
"filename" => filename.url_encode, "filename" => filename.url_encode,