github.com/goreleaser/goreleaser@v1.25.1/internal/pipe/brew/testdata/TestRunPipeForMultipleAmd64Versions/v3.rb.golden (about)

     1  # typed: false
     2  # frozen_string_literal: true
     3  
     4  # This file was generated by GoReleaser. DO NOT EDIT.
     5  class V3 < Formula
     6    desc "Run pipe test formula"
     7    homepage "https://github.com/goreleaser"
     8    version "1.0.1"
     9  
    10    on_macos do
    11      if Hardware::CPU.arm?
    12        url "https://dummyhost/download/v1.0.1/bin.tar.gz"
    13        sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    14  
    15        def install
    16          bin.install "foo"
    17          man1.install "./man/foo.1.gz"
    18        end
    19      end
    20    end
    21  
    22    on_linux do
    23      if Hardware::CPU.intel?
    24        url "https://dummyhost/download/v1.0.1/amd64v3.tar.gz"
    25        sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    26  
    27        def install
    28          bin.install "foo"
    29          man1.install "./man/foo.1.gz"
    30        end
    31      end
    32      if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
    33        url "https://dummyhost/download/v1.0.1/arm64.tar.gz"
    34        sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    35  
    36        def install
    37          bin.install "foo"
    38          man1.install "./man/foo.1.gz"
    39        end
    40      end
    41    end
    42  end