Go_containerregistry 0.14.0 => 0.20.0 (#10145)

This commit is contained in:
Ed Reel
2024-07-14 09:26:42 -05:00
committed by GitHub
parent 89f1eb973c
commit 7b4356368e
3 changed files with 15 additions and 10 deletions

View File

@@ -0,0 +1,3 @@
/usr/local/bin/crane
/usr/local/bin/gcrane
/usr/local/bin/krane

View File

@@ -0,0 +1,3 @@
/usr/local/bin/crane
/usr/local/bin/gcrane
/usr/local/bin/krane

View File

@@ -3,26 +3,25 @@ require 'package'
class Go_containerregistry < Package
description 'Go library and CLIs for working with container registries'
homepage 'https://github.com/google/go-containerregistry'
version '0.14.0'
version '0.20.0'
license 'Apache-2.0'
compatibility 'all'
source_url({
aarch64: 'https://github.com/google/go-containerregistry/releases/download/v0.14.0/go-containerregistry_Linux_armv6.tar.gz',
armv7l: 'https://github.com/google/go-containerregistry/releases/download/v0.14.0/go-containerregistry_Linux_armv6.tar.gz',
i686: 'https://github.com/google/go-containerregistry/releases/download/v0.14.0/go-containerregistry_Linux_i386.tar.gz',
x86_64: 'https://github.com/google/go-containerregistry/releases/download/v0.14.0/go-containerregistry_Linux_x86_64.tar.gz'
aarch64: "https://github.com/google/go-containerregistry/releases/download/v#{version}/go-containerregistry_Linux_armv6.tar.gz",
armv7l: "https://github.com/google/go-containerregistry/releases/download/v#{version}/go-containerregistry_Linux_armv6.tar.gz",
i686: "https://github.com/google/go-containerregistry/releases/download/v#{version}/go-containerregistry_Linux_i386.tar.gz",
x86_64: "https://github.com/google/go-containerregistry/releases/download/v#{version}/go-containerregistry_Linux_x86_64.tar.gz"
})
source_sha256({
aarch64: '81ea3959bb83e26abcfdacb6bde5775c68f4dc0a0c2dbc08078091e2470a286e',
armv7l: '81ea3959bb83e26abcfdacb6bde5775c68f4dc0a0c2dbc08078091e2470a286e',
i686: '68bcdf86458a5177c827bbb8209f6d839e06bb86840702409324bfd591d54ff4',
x86_64: '5b68fe0f7fe9170ba3e1677f47ecfc892c687a2fdcbc2b1de39ab5e9663de5d7'
aarch64: 'd3f059aa0b025eb6721ec1d8f39672eeff526b6decbdc5837a19fc40254c35f7',
armv7l: 'd3f059aa0b025eb6721ec1d8f39672eeff526b6decbdc5837a19fc40254c35f7',
i686: 'eefc49473b3bb4679a9dafb1ab75f170f2e695e147a13c877498b795cec65ea8',
x86_64: '601ab53cf39e9fef3cf67ecb488ba6187a64f7209ccbd3308447291f7843f0b2'
})
no_compile_needed
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install %w[crane gcrane krane], "#{CREW_DEST_PREFIX}/bin", mode: 0o755
end
end