1
0
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:
Eli Young 2018-04-05 13:38:32 -07:00 committed by Carlos Alexandro Becker
parent d6436729c7
commit 75afc6bbd7
6 changed files with 6 additions and 6 deletions

View File

@ -60,7 +60,7 @@ const formulaTemplate = `class {{ .Name }} < Formula
{{- with .Caveats }}
def caveats; <<-EOS.undent
def caveats; <<~EOS
{{- range $index, $element := . }}
{{ . -}}
{{- end }}

View File

@ -17,7 +17,7 @@ class BuildFromSource < Formula
bin.install "foo"
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
don't do this
EOS
end

View File

@ -15,7 +15,7 @@ class CustomDownloadStrategy < Formula
bin.install "foo"
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
don't do this
EOS
end

View File

@ -15,7 +15,7 @@ class Default < Formula
bin.install "foo"
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
don't do this
EOS
end

View File

@ -15,7 +15,7 @@ class GithubEnterpriseUrl < Formula
bin.install "foo"
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
don't do this
EOS
end

View File

@ -14,7 +14,7 @@ class Test < Formula
another install script
end
def caveats; <<-EOS.undent
def caveats; <<~EOS
Here are some caveats
EOS
end