mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix: update brew template to use tilde heredoc syntax
This commit is contained in:
parent
681393119f
commit
f2edd97c15
@ -58,7 +58,7 @@ const formulaTemplate = `class {{ .Name }} < Formula
|
||||
|
||||
plist_options :startup => false
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
{{ .Plist }}
|
||||
EOS
|
||||
end
|
||||
|
2
pipeline/brew/testdata/run_pipe.rb.golden
vendored
2
pipeline/brew/testdata/run_pipe.rb.golden
vendored
@ -21,7 +21,7 @@ class RunPipe < Formula
|
||||
|
||||
plist_options :startup => false
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<xml>whatever</xml>
|
||||
EOS
|
||||
end
|
||||
|
@ -21,7 +21,7 @@ class RunPipe < Formula
|
||||
|
||||
plist_options :startup => false
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<xml>whatever</xml>
|
||||
EOS
|
||||
end
|
||||
|
@ -21,7 +21,7 @@ class RunPipe < Formula
|
||||
|
||||
plist_options :startup => false
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
<xml>whatever</xml>
|
||||
EOS
|
||||
end
|
||||
|
2
pipeline/brew/testdata/test.rb.golden
vendored
2
pipeline/brew/testdata/test.rb.golden
vendored
@ -20,7 +20,7 @@ class Test < Formula
|
||||
|
||||
plist_options :startup => false
|
||||
|
||||
def plist; <<-EOS.undent
|
||||
def plist; <<~EOS
|
||||
it works
|
||||
EOS
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user