mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-09 13:36:56 +02:00
fix: Use squiggly heredocs in Homebrew formulae
Homebrew now warns that <<-EOS.undent is deprecated.
This commit is contained in:
parent
d6436729c7
commit
75afc6bbd7
@ -60,7 +60,7 @@ const formulaTemplate = `class {{ .Name }} < Formula
|
||||
|
||||
{{- with .Caveats }}
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
{{- range $index, $element := . }}
|
||||
{{ . -}}
|
||||
{{- end }}
|
||||
|
@ -17,7 +17,7 @@ class BuildFromSource < Formula
|
||||
bin.install "foo"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
don't do this
|
||||
EOS
|
||||
end
|
||||
|
@ -15,7 +15,7 @@ class CustomDownloadStrategy < Formula
|
||||
bin.install "foo"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
don't do this
|
||||
EOS
|
||||
end
|
||||
|
2
pipeline/brew/testdata/default.rb.golden
vendored
2
pipeline/brew/testdata/default.rb.golden
vendored
@ -15,7 +15,7 @@ class Default < Formula
|
||||
bin.install "foo"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
don't do this
|
||||
EOS
|
||||
end
|
||||
|
@ -15,7 +15,7 @@ class GithubEnterpriseUrl < Formula
|
||||
bin.install "foo"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
don't do this
|
||||
EOS
|
||||
end
|
||||
|
2
pipeline/brew/testdata/test.rb.golden
vendored
2
pipeline/brew/testdata/test.rb.golden
vendored
@ -14,7 +14,7 @@ class Test < Formula
|
||||
another install script
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
Here are some caveats
|
||||
EOS
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user