Skip to content

Commit

Permalink
feat: allow configuring custom remote to download
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDark committed Jun 27, 2024
1 parent 15826d5 commit 03490c9
Show file tree
Hide file tree
Showing 41 changed files with 167 additions and 167 deletions.
2 changes: 1 addition & 1 deletion Casks/hashicorp-boundary-desktop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
version "2.0.3"
sha256 "2060faa36deea45bdcdd0ce63d06675491829552df7a02013e6f49b77c4352e0"

url "https://releases.hashicorp.com/boundary-desktop/#{version}/boundary-desktop_#{version}_darwin_amd64.dmg",
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary-desktop/#{version}/boundary-desktop_#{version}_darwin_amd64.dmg",
verified: "hashicorp.com/boundary-desktop/"
name "Boundary Desktop"
desc ""
Expand Down
2 changes: 1 addition & 1 deletion Casks/hashicorp-vagrant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
arch arm: "arm64", intel: "amd64"
sha256 arm: "881953f7d4cea45aa8b2f2c6c8f5714c2ad4586edd17c6faeb163c6ebed2918e",
intel: "881953f7d4cea45aa8b2f2c6c8f5714c2ad4586edd17c6faeb163c6ebed2918e"
url "https://releases.hashicorp.com/vagrant/#{version}/vagrant_#{version}_darwin_#{arch}.dmg",
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/vagrant/#{version}/vagrant_#{version}_darwin_#{arch}.dmg",
verified: "hashicorp.com/vagrant/"
name "Vagrant"
desc "Development environment"
Expand Down
10 changes: 5 additions & 5 deletions Formula/boundary-enterprise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ class BoundaryEnterprise < Formula
version "0.16.2+ent"

if OS.mac? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/boundary/0.16.2+ent/boundary_0.16.2+ent_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.16.2+ent/boundary_0.16.2+ent_darwin_amd64.zip"
sha256 "e5933f71c327b9a81637340765f47b37d3ac1883b7cc7b21b21c457dbb9d8347"
end

if OS.mac? && Hardware::CPU.arm?
url "https://releases.hashicorp.com/boundary/0.16.2+ent/boundary_0.16.2+ent_darwin_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.16.2+ent/boundary_0.16.2+ent_darwin_arm64.zip"
sha256 "0f3f26f185ed58457ade4e4136cb8f8bf0973ef6ecbb62311bcd115be508ed08"
end

if OS.linux? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/boundary/0.16.2+ent/boundary_0.16.2+ent_linux_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.16.2+ent/boundary_0.16.2+ent_linux_amd64.zip"
sha256 "2b764bc546bf85b82fd884e57a6d712c0c366bdab4dc6801fdc27c3438c609df"
end

if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/boundary/0.16.2+ent/boundary_0.16.2+ent_linux_arm.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.16.2+ent/boundary_0.16.2+ent_linux_arm.zip"
sha256 "5776f45265806386e820b83a58ca3945857d45fce05cae4868fb055cd0c92184"
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/boundary/0.16.2+ent/boundary_0.16.2+ent_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.16.2+ent/boundary_0.16.2+ent_linux_arm64.zip"
sha256 "2bc427299fb4c77abe8de9bbcd572605e2aedf67ab4a7e9ea4f495f7c6d0b7c1"
end

Expand Down
10 changes: 5 additions & 5 deletions Formula/boundary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ class Boundary < Formula
version "0.16.2"

if OS.mac? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/boundary/0.16.2/boundary_0.16.2_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.16.2/boundary_0.16.2_darwin_amd64.zip"
sha256 "29478c2b34ac186c1e3a490afe4c465ec0e945a63659ef4d1d9906966fb5add7"
end

if OS.mac? && Hardware::CPU.arm?
url "https://releases.hashicorp.com/boundary/0.16.2/boundary_0.16.2_darwin_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.16.2/boundary_0.16.2_darwin_arm64.zip"
sha256 "727352fb0dd16ee7e7f3f61bf51ad1c14a8359d3ef5c4bccac929511796e3284"
end

if OS.linux? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/boundary/0.16.2/boundary_0.16.2_linux_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.16.2/boundary_0.16.2_linux_amd64.zip"
sha256 "42618e2f1f0e413ad8a9abc5d731dd425b135446e8f007e38057132b51b066d3"
end

if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/boundary/0.16.2/boundary_0.16.2_linux_arm.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.16.2/boundary_0.16.2_linux_arm.zip"
sha256 "e146204bef6c0d37d5c866f1d0fbe1e6ac10b19c174454dd09d1577e3133d944"
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/boundary/0.16.2/boundary_0.16.2_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.16.2/boundary_0.16.2_linux_arm64.zip"
sha256 "541a530f3da2e79aa054d0812790c2c60a75225ff5e89c316b4e3a26a0833685"
end

Expand Down
6 changes: 3 additions & 3 deletions Formula/consul-aws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ConsulAws < Formula
version "0.1.3"

if OS.mac?
url "https://releases.hashicorp.com/consul-aws/0.1.3/consul-aws_0.1.3_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-aws/0.1.3/consul-aws_0.1.3_darwin_amd64.zip"
sha256 "41c57011b30233ae972428f2e57f11ee656138b116982bbcb6bf5a3e138e7510"
end

Expand All @@ -23,12 +23,12 @@ def caveats
end

if OS.linux? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul-aws/0.1.3/consul-aws_0.1.3_linux_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-aws/0.1.3/consul-aws_0.1.3_linux_amd64.zip"
sha256 "041d14c0219b13f109745bc97818fd235afde2badff6264d9132438d0a03fdf0"
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-aws/0.1.3/consul-aws_0.1.3_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-aws/0.1.3/consul-aws_0.1.3_linux_arm64.zip"
sha256 "a6a2c3e9e480da2c57da7cfbfc7bfadfcc8a2df654fc3fc92330f255fae497a8"
end

Expand Down
10 changes: 5 additions & 5 deletions Formula/consul-dataplane.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ class ConsulDataplane < Formula
version "1.5.0"

if OS.mac? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul-dataplane/1.5.0/consul-dataplane_1.5.0_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-dataplane/1.5.0/consul-dataplane_1.5.0_darwin_amd64.zip"
sha256 "8ac86a5d543442b54993c10c743331b20cdece045d99be26e2a611908b6003ee"
end

if OS.mac? && Hardware::CPU.arm?
url "https://releases.hashicorp.com/consul-dataplane/1.5.0/consul-dataplane_1.5.0_darwin_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-dataplane/1.5.0/consul-dataplane_1.5.0_darwin_arm64.zip"
sha256 "dff35269ebb5baf408c1b63a7fd8f545b58236cdcf90560a6665417276467fec"
end

if OS.linux? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul-dataplane/1.5.0/consul-dataplane_1.5.0_linux_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-dataplane/1.5.0/consul-dataplane_1.5.0_linux_amd64.zip"
sha256 "94b2f0fdd7f8bd7ab112adafbc7edda8a6a1988c13482178871262c2464d229d"
end

if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-dataplane/1.5.0/consul-dataplane_1.5.0_linux_arm.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-dataplane/1.5.0/consul-dataplane_1.5.0_linux_arm.zip"
sha256 "25047db84d49520f5818494b42ad2855f0f8d498eaba6087e0920e7b134a42d4"
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-dataplane/1.5.0/consul-dataplane_1.5.0_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-dataplane/1.5.0/consul-dataplane_1.5.0_linux_arm64.zip"
sha256 "8a6963618bc7fa0a1a5cbbd98ac764a3f08241c907535cbba509fe073759947f"
end

Expand Down
10 changes: 5 additions & 5 deletions Formula/consul-enterprise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ class ConsulEnterprise < Formula
version "1.19.0+ent"

if OS.mac? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul/1.19.0+ent/consul_1.19.0+ent_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.19.0+ent/consul_1.19.0+ent_darwin_amd64.zip"
sha256 "63aa035bad22ffce0fff1bd9f4c80ceef970afc53b004ec0fa810cebc4eb19a3"
end

if OS.mac? && Hardware::CPU.arm?
url "https://releases.hashicorp.com/consul/1.19.0+ent/consul_1.19.0+ent_darwin_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.19.0+ent/consul_1.19.0+ent_darwin_arm64.zip"
sha256 "b0ec9960f1af3351918bbaa58787fe434121c4b1d9248536ec53423f5c8f904c"
end

if OS.linux? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul/1.19.0+ent/consul_1.19.0+ent_linux_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.19.0+ent/consul_1.19.0+ent_linux_amd64.zip"
sha256 "e583b6ef4b93fbb66d57248ae4da7f842fbe1171d6c37679cc93005d872a8765"
end

if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul/1.19.0+ent/consul_1.19.0+ent_linux_arm.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.19.0+ent/consul_1.19.0+ent_linux_arm.zip"
sha256 "cbf82ec50088649b4439a333829ada2e75200b0b9c5fafed8e133d988dfa0d0c"
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul/1.19.0+ent/consul_1.19.0+ent_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.19.0+ent/consul_1.19.0+ent_linux_arm64.zip"
sha256 "081a47431dcb7f314818901fe268d155df3d2a50ae519c445918c003eae7de7d"
end

Expand Down
10 changes: 5 additions & 5 deletions Formula/consul-esm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ class ConsulEsm < Formula
version "0.7.2"

if OS.mac? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul-esm/0.7.2/consul-esm_0.7.2_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-esm/0.7.2/consul-esm_0.7.2_darwin_amd64.zip"
sha256 "79145ce7dc6a48965a5f6ff94428bd2ccc9b465bc0d81113cd22cd3114fde942"
end

if OS.mac? && Hardware::CPU.arm?
url "https://releases.hashicorp.com/consul-esm/0.7.2/consul-esm_0.7.2_darwin_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-esm/0.7.2/consul-esm_0.7.2_darwin_arm64.zip"
sha256 "7ecdab10e4a7f2533aaf0c9909b0a6a2c52f99c899447dd9c8dfece8742ca86d"
end

if OS.linux? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul-esm/0.7.2/consul-esm_0.7.2_linux_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-esm/0.7.2/consul-esm_0.7.2_linux_amd64.zip"
sha256 "c6ad998ac5599eacddc54800355c39d289e486f5a61e3d92a5580895e4e8bdd5"
end

if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-esm/0.7.2/consul-esm_0.7.2_linux_arm.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-esm/0.7.2/consul-esm_0.7.2_linux_arm.zip"
sha256 "f98d817f643621cb377c9abc5486b2edfae8c885a1831450595b74ae7bc0e2cb"
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-esm/0.7.2/consul-esm_0.7.2_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-esm/0.7.2/consul-esm_0.7.2_linux_arm64.zip"
sha256 "e4ced673bbf2c70931301a3f5a5daaa1450a82876096c4f1177a20f02edf7683"
end

Expand Down
10 changes: 5 additions & 5 deletions Formula/consul-k8s.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ class ConsulK8s < Formula
version "1.5.0"

if OS.mac? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul-k8s/1.5.0/consul-k8s_1.5.0_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-k8s/1.5.0/consul-k8s_1.5.0_darwin_amd64.zip"
sha256 "9b7202367568388d4ae9b114576f9a4a1a97c68392e4583d8fbd756f79f3583c"
end

if OS.mac? && Hardware::CPU.arm?
url "https://releases.hashicorp.com/consul-k8s/1.5.0/consul-k8s_1.5.0_darwin_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-k8s/1.5.0/consul-k8s_1.5.0_darwin_arm64.zip"
sha256 "de6d804d059cc90f77c1dd26dc7e3368107a18c93106f630e42a7d27b83ca7c7"
end

if OS.linux? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul-k8s/1.5.0/consul-k8s_1.5.0_linux_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-k8s/1.5.0/consul-k8s_1.5.0_linux_amd64.zip"
sha256 "9618759e54d9b0add8fbed0bc3caa78c3f68db8830636e70b95efbe1047ae5ee"
end

if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-k8s/1.5.0/consul-k8s_1.5.0_linux_arm.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-k8s/1.5.0/consul-k8s_1.5.0_linux_arm.zip"
sha256 "725b2e61a7685276c33669f0abadfc9575dd58d8a36c1fedfffe30ae7f26573c"
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-k8s/1.5.0/consul-k8s_1.5.0_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-k8s/1.5.0/consul-k8s_1.5.0_linux_arm64.zip"
sha256 "9f4b62d9c359c45bd4e4c80ee964e161cbe9e2e2ed4cd3106201854dc6985cc3"
end

Expand Down
10 changes: 5 additions & 5 deletions Formula/consul-template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ class ConsulTemplate < Formula
version "0.39.0"

if OS.mac? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul-template/0.39.0/consul-template_0.39.0_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-template/0.39.0/consul-template_0.39.0_darwin_amd64.zip"
sha256 "5e773e01009892e5645b6e08e3380e132987fdecdb24221ed283bf60ddbc7e02"
end

if OS.mac? && Hardware::CPU.arm?
url "https://releases.hashicorp.com/consul-template/0.39.0/consul-template_0.39.0_darwin_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-template/0.39.0/consul-template_0.39.0_darwin_arm64.zip"
sha256 "b6d8c6d59e2b9a1d3f02b4f653322f940192ab47553f2810a0fab152e81a7232"
end

if OS.linux? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul-template/0.39.0/consul-template_0.39.0_linux_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-template/0.39.0/consul-template_0.39.0_linux_amd64.zip"
sha256 "10e7eba0acc307ab6500e49f75bdb95d8c7273266822e936f78a1c72425e7f4f"
end

if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-template/0.39.0/consul-template_0.39.0_linux_arm.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-template/0.39.0/consul-template_0.39.0_linux_arm.zip"
sha256 "0a200e8a149489714811b83f3aa2623f2d8f00478311d292565c381718c94160"
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-template/0.39.0/consul-template_0.39.0_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-template/0.39.0/consul-template_0.39.0_linux_arm64.zip"
sha256 "6e5f6880fef6b08348d8d68e6027d25742c8576367f8a6714da1b8ff79fb9c85"
end

Expand Down
8 changes: 4 additions & 4 deletions Formula/consul-terraform-sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class ConsulTerraformSync < Formula
version "0.7.1"

if OS.mac?
url "https://releases.hashicorp.com/consul-terraform-sync/0.7.1/consul-terraform-sync_0.7.1_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-terraform-sync/0.7.1/consul-terraform-sync_0.7.1_darwin_amd64.zip"
sha256 "fc0a19476d28230ea753d11e375f03adc726f14aa12f2ddd89328889a07ff2db"
end

Expand All @@ -23,17 +23,17 @@ def caveats
end

if OS.linux? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul-terraform-sync/0.7.1/consul-terraform-sync_0.7.1_linux_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-terraform-sync/0.7.1/consul-terraform-sync_0.7.1_linux_amd64.zip"
sha256 "afd03bdd150a1949a65b5b48f7d299eab4f2e93639e2957ec792c2b746e34682"
end

if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-terraform-sync/0.7.1/consul-terraform-sync_0.7.1_linux_arm.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-terraform-sync/0.7.1/consul-terraform-sync_0.7.1_linux_arm.zip"
sha256 "a1f632edbe288171b9402c4f6ba98b32a0e87df208b03dc9a51339078e615d8b"
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-terraform-sync/0.7.1/consul-terraform-sync_0.7.1_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-terraform-sync/0.7.1/consul-terraform-sync_0.7.1_linux_arm64.zip"
sha256 "1f942d8d745b8ddecbf565e6ca57bb9ac3a80c26adee7faa0556737844449ad2"
end

Expand Down
10 changes: 5 additions & 5 deletions Formula/consul.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@ class Consul < Formula
version "1.19.0"

if OS.mac? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul/1.19.0/consul_1.19.0_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.19.0/consul_1.19.0_darwin_amd64.zip"
sha256 "1a1152eb5739d2bc2cdb0bf85d7fa67457ce5af550897d3b7d9183ad79a0e142"
end

if OS.mac? && Hardware::CPU.arm?
url "https://releases.hashicorp.com/consul/1.19.0/consul_1.19.0_darwin_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.19.0/consul_1.19.0_darwin_arm64.zip"
sha256 "02b6bbc76dae9b49a610af7f0f1caea65965e8fa9b126a75c7085cc3474da20b"
end

if OS.linux? && Hardware::CPU.intel?
url "https://releases.hashicorp.com/consul/1.19.0/consul_1.19.0_linux_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.19.0/consul_1.19.0_linux_amd64.zip"
sha256 "e337fba12295fc7bab177a84a7616eb8bcc827f032a2982c8c0e417fbe86541f"
end

if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul/1.19.0/consul_1.19.0_linux_arm.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.19.0/consul_1.19.0_linux_arm.zip"
sha256 "5d8d9a024ce54d74f3867b5bd09e93522728f5bfbe4bb6bb5e90ab630684eb92"
end

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul/1.19.0/consul_1.19.0_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.19.0/consul_1.19.0_linux_arm64.zip"
sha256 "6956d1bf8070a37fdbdbdfc018fb7aad7ab24ea9867d0f05dad35c7e26a43f33"
end

Expand Down
Loading

0 comments on commit 03490c9

Please sign in to comment.