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 Feb 14, 2024
1 parent 9d404cd commit 68aa9ac
Show file tree
Hide file tree
Showing 39 changed files with 161 additions and 162 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.0"
sha256 "49656e489440dcf773658cfa51d1abcfbadff5aef32127f2844f4f16ac170ae6"

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.15.0+ent"

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

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

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

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

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/boundary/0.15.0+ent/boundary_0.15.0+ent_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.15.0+ent/boundary_0.15.0+ent_linux_arm64.zip"
sha256 "e374c276ab9799c4f9526163bff367eb5581d168a97247b0ffb46ad690c3d309"
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.15.0"

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

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

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

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

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/boundary/0.15.0/boundary_0.15.0_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/boundary/0.15.0/boundary_0.15.0_linux_arm64.zip"
sha256 "1a24b1b9eaf903a9be7bcb8f6e9be9a84771319c3eb989800c99759ecfcd2461"
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 @@ -4,7 +4,7 @@ class ConsulAws < Formula
version "0.1.2"

if OS.mac?
url "https://releases.hashicorp.com/consul-aws/0.1.2/consul-aws_0.1.2_darwin_amd64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-aws/0.1.2/consul-aws_0.1.2_darwin_amd64.zip"
sha256 "3bd2d8c0863bcc491af7d45b20a01d28234bae24449fe73f71897aac513ddb0b"
end

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

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

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-aws/0.1.2/consul-aws_0.1.2_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-aws/0.1.2/consul-aws_0.1.2_linux_arm64.zip"
sha256 "16145d50885aeb6d588b9a35ec4492e5e6960f7c68d4d2f16b0581397e5821f2"
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.3.2"

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

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

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

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

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-dataplane/1.3.2/consul-dataplane_1.3.2_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-dataplane/1.3.2/consul-dataplane_1.3.2_linux_arm64.zip"
sha256 "837989bd4f65957a0741c4a3be68f18d4711d03fcd5bd803db9ae2b1bd8ba46e"
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.17.3+ent"

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

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

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

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

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul/1.17.3+ent/consul_1.17.3+ent_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul/1.17.3+ent/consul_1.17.3+ent_linux_arm64.zip"
sha256 "2dbb331bef3073fc079660d1e9a47565c3451bdc8074ad38bd3b151184875020"
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 @@ -4,27 +4,27 @@ class ConsulEsm < Formula
version "0.7.1"

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

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

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

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

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-esm/0.7.1/consul-esm_0.7.1_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-esm/0.7.1/consul-esm_0.7.1_linux_arm64.zip"
sha256 "47e607ef585fb0f4fdffa9de9364e28ecba7a1c9dc80734d4a20f5744d5a37d8"
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.3.2"

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

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

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

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

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-k8s/1.3.2/consul-k8s_1.3.2_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-k8s/1.3.2/consul-k8s_1.3.2_linux_arm64.zip"
sha256 "895eeafae90a5f81d8bd019433ccd9f75cecec20e79e0b437b01747abec2d1cd"
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.36.0"

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

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

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

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

if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://releases.hashicorp.com/consul-template/0.36.0/consul-template_0.36.0_linux_arm64.zip"
url "#{ENV['HOMEBREW_TAP_HASHICORP_REMOTE'].presence || 'https://releases.hashicorp.com'}/consul-template/0.36.0/consul-template_0.36.0_linux_arm64.zip"
sha256 "261a599f411042808b430e44c6f9b6be4c19ed36a5b56dcc9e5d1f0a64576c6c"
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.17.3"

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

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

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

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

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

Expand Down
Loading

0 comments on commit 68aa9ac

Please sign in to comment.