mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix: add do not edit header to brew formulas
This commit is contained in:
parent
bc8687b302
commit
d183891332
@ -18,7 +18,8 @@ type templateData struct {
|
||||
CustomBlock []string
|
||||
}
|
||||
|
||||
const formulaTemplate = `{{ if .CustomRequire -}}
|
||||
const formulaTemplate = `# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
{{ if .CustomRequire -}}
|
||||
require_relative "{{ .CustomRequire }}"
|
||||
{{ end -}}
|
||||
class {{ .Name }} < Formula
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class BinaryOverridden < Formula
|
||||
desc "A run pipe test formula"
|
||||
homepage "https://github.com/goreleaser"
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class CustomBlock < Formula
|
||||
desc "A run pipe test formula"
|
||||
homepage "https://github.com/goreleaser"
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class CustomDownloadStrategy < Formula
|
||||
desc "A run pipe test formula"
|
||||
homepage "https://github.com/goreleaser"
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
require_relative "custom_download_strategy"
|
||||
class CustomRequire < Formula
|
||||
desc "A run pipe test formula"
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class Default < Formula
|
||||
desc "A run pipe test formula"
|
||||
homepage "https://github.com/goreleaser"
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class GithubEnterpriseUrl < Formula
|
||||
desc "A run pipe test formula"
|
||||
homepage "https://github.com/goreleaser"
|
||||
|
1
internal/pipe/brew/testdata/test.rb.golden
vendored
1
internal/pipe/brew/testdata/test.rb.golden
vendored
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
class Test < Formula
|
||||
desc "Some desc"
|
||||
homepage "https://google.com"
|
||||
|
Loading…
x
Reference in New Issue
Block a user