From aa1699747e10d5ffbc8491afe10c36e301e2a7f1 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 17 Jan 2017 15:44:32 -0200 Subject: [PATCH] remove : from depends_on refs https://github.com/goreleaser/goreleaser/issues/86#issuecomment-273221892 --- pipeline/brew/brew.go | 2 +- pipeline/brew/brew_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pipeline/brew/brew.go b/pipeline/brew/brew.go index d2f67ee8e..9af6010d7 100644 --- a/pipeline/brew/brew.go +++ b/pipeline/brew/brew.go @@ -27,7 +27,7 @@ const formulae = `class {{ .Name }} < Formula {{- if .Dependencies }} {{ range $index, $element := .Dependencies }} - depends_on: "{{ . }}" + depends_on "{{ . }}" {{- end }} {{- end }} diff --git a/pipeline/brew/brew_test.go b/pipeline/brew/brew_test.go index dd1051210..d8f34d865 100644 --- a/pipeline/brew/brew_test.go +++ b/pipeline/brew/brew_test.go @@ -51,8 +51,8 @@ func TestFullFormulae(t *testing.T) { assertDefaultTemplateData(t, formulae) assert.Contains(formulae, "def caveats") assert.Contains(formulae, "Here are some caveats") - assert.Contains(formulae, "depends_on: \"gtk\"") - assert.Contains(formulae, "depends_on: \"git\"") + assert.Contains(formulae, "depends_on \"gtk\"") + assert.Contains(formulae, "depends_on \"git\"") } func TestFormulaeNoCaveats(t *testing.T) {