diff --git a/pipeline/brew/template.go b/pipeline/brew/template.go index f77951d89..6a8d7a02c 100644 --- a/pipeline/brew/template.go +++ b/pipeline/brew/template.go @@ -35,8 +35,8 @@ const formulaTemplate = `class {{ .Name }} < Formula version "{{ .Version }}" sha256 "{{ .SHA256 }}" - {{ with .Dependencies -}} - {{ range $index, $element := . -}} + {{- with .Dependencies }} + {{ range $index, $element := . }} depends_on "{{ . }}" {{- end }} {{- end -}} diff --git a/pipeline/brew/testdata/build_from_source.rb.golden b/pipeline/brew/testdata/build_from_source.rb.golden index f8d127139..86205d449 100644 --- a/pipeline/brew/testdata/build_from_source.rb.golden +++ b/pipeline/brew/testdata/build_from_source.rb.golden @@ -5,8 +5,9 @@ class BuildFromSource < Formula head "https://github.com/test/test.git" version "1.0.1" sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" - - depends_on "zsh"depends_on "bash" + + depends_on "zsh" + depends_on "bash" depends_on "go" => :build conflicts_with "gtk+" diff --git a/pipeline/brew/testdata/custom_download_strategy.rb.golden b/pipeline/brew/testdata/custom_download_strategy.rb.golden index 24bcdfc45..f1d30c981 100644 --- a/pipeline/brew/testdata/custom_download_strategy.rb.golden +++ b/pipeline/brew/testdata/custom_download_strategy.rb.golden @@ -4,8 +4,9 @@ class CustomDownloadStrategy < Formula url "https://github.com/test/test/releases/download/v1.0.1/bin.tar.gz", :using => GitHubPrivateRepositoryReleaseDownloadStrategy version "1.0.1" sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" - - depends_on "zsh"depends_on "bash" + + depends_on "zsh" + depends_on "bash" conflicts_with "gtk+" conflicts_with "qt" diff --git a/pipeline/brew/testdata/default.rb.golden b/pipeline/brew/testdata/default.rb.golden index 1b767cb2a..39c252e34 100644 --- a/pipeline/brew/testdata/default.rb.golden +++ b/pipeline/brew/testdata/default.rb.golden @@ -4,8 +4,9 @@ class Default < Formula url "https://github.com/test/test/releases/download/v1.0.1/bin.tar.gz" version "1.0.1" sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" - - depends_on "zsh"depends_on "bash" + + depends_on "zsh" + depends_on "bash" conflicts_with "gtk+" conflicts_with "qt" diff --git a/pipeline/brew/testdata/github_enterprise_url.rb.golden b/pipeline/brew/testdata/github_enterprise_url.rb.golden index 7c82fe26f..fe80b0083 100644 --- a/pipeline/brew/testdata/github_enterprise_url.rb.golden +++ b/pipeline/brew/testdata/github_enterprise_url.rb.golden @@ -4,8 +4,9 @@ class GithubEnterpriseUrl < Formula url "http://github.example.org/test/test/releases/download/v1.0.1/bin.tar.gz" version "1.0.1" sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" - - depends_on "zsh"depends_on "bash" + + depends_on "zsh" + depends_on "bash" conflicts_with "gtk+" conflicts_with "qt" diff --git a/pipeline/brew/testdata/test.rb.golden b/pipeline/brew/testdata/test.rb.golden index 19e181809..a9c254602 100644 --- a/pipeline/brew/testdata/test.rb.golden +++ b/pipeline/brew/testdata/test.rb.golden @@ -4,7 +4,7 @@ class Test < Formula url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz" version "0.1.3" sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68" - + depends_on "gtk+" conflicts_with "svn"