Skip to content
Permalink
Browse files

fix: Use squiggly heredocs in Homebrew formulae

Homebrew now warns that <<-EOS.undent is deprecated.
  • Loading branch information...
elyscape authored and caarlos0 committed Apr 5, 2018
1 parent d643672 commit 75afc6bbd77a9cd4c4141b0dbf4458e8cf20abe2
@@ -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
@@ -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
@@ -14,7 +14,7 @@ class Test < Formula
another install script
end

def caveats; <<-EOS.undent
def caveats; <<~EOS
Here are some caveats
EOS
end

0 comments on commit 75afc6b

Please sign in to comment.
You can’t perform that action at this time.