mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix: Adds comments to formula template to conform to 'brew audit --strict --online' (#2001)
* fix: Adds comments to formula template to conform to 'brew audit' * Adding expected output to formula testdata files
This commit is contained in:
parent
a52b1482b4
commit
49c17befcf
@ -29,7 +29,10 @@ type downloadable struct {
|
||||
SHA256 string
|
||||
}
|
||||
|
||||
const formulaTemplate = `# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
const formulaTemplate = `# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
{{ if .CustomRequire -}}
|
||||
require_relative "{{ .CustomRequire }}"
|
||||
{{ end -}}
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class BinaryOverridden < Formula
|
||||
desc "A run pipe test formula"
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class CustomBlock < Formula
|
||||
desc "A run pipe test formula and FOO=foo_is_bar"
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class CustomDownloadStrategy < Formula
|
||||
desc "A run pipe test formula and FOO=foo_is_bar"
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
require_relative "custom_download_strategy"
|
||||
class CustomRequire < Formula
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class Default < Formula
|
||||
desc "A run pipe test formula and FOO=foo_is_bar"
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class DefaultGitlab < Formula
|
||||
desc "A run pipe test formula and FOO=foo_is_bar"
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class FooIsBar < Formula
|
||||
desc ""
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class MultipleArmv5 < Formula
|
||||
desc "A run pipe test formula and FOO=foo_is_bar"
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class MultipleArmv6 < Formula
|
||||
desc "A run pipe test formula and FOO=foo_is_bar"
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class MultipleArmv7 < Formula
|
||||
desc "A run pipe test formula and FOO=foo_is_bar"
|
||||
|
3
internal/pipe/brew/testdata/test.rb.golden
vendored
3
internal/pipe/brew/testdata/test.rb.golden
vendored
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class Test < Formula
|
||||
desc "Some desc"
|
||||
|
@ -1,3 +1,6 @@
|
||||
# typed: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class Test < Formula
|
||||
desc "Some desc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user