mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-24 04:16:27 +02:00
f734b503d4
Currently on a M1 macbook when adding a tap with formulas that only support amd64 it fails to add the tap. This prevents new arm64 users from using the tap. By allowing arm64 users to install an amd64 binary if no arm64 binary is avialable will atleast allow the user to use the tap.
29 lines
669 B
Plaintext
29 lines
669 B
Plaintext
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
# This file was generated by GoReleaser. DO NOT EDIT.
|
|
class FooIsBar < Formula
|
|
desc ""
|
|
homepage ""
|
|
version "1.0.1"
|
|
depends_on :macos
|
|
|
|
on_macos do
|
|
url "https://dummyhost/download/v1.0.1/bin.tar.gz"
|
|
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
|
|
def install
|
|
end
|
|
|
|
if Hardware::CPU.arm?
|
|
def caveats
|
|
<<~EOS
|
|
The darwin_arm64 architecture is not supported for the FooIsBar
|
|
formula at this time. The darwin_amd64 binary may work in compatibility
|
|
mode, but it might not be fully supported.
|
|
EOS
|
|
end
|
|
end
|
|
end
|
|
end
|