releaser: Work around a Goreleaser bug

Closes #4918
This commit is contained in:
Bjørn Erik Pedersen 2018-08-17 10:58:18 +02:00
parent 918177ac25
commit de23293486
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -245,7 +245,12 @@ func (r *ReleaseHandler) release(releaseNotesFile string) error {
return nil return nil
} }
cmd := exec.Command("goreleaser", "--rm-dist", "--release-notes", releaseNotesFile, "--skip-publish="+fmt.Sprint(r.skipPublish)) args := []string{"--rm-dist", "--release-notes", releaseNotesFile}
if r.skipPublish {
args = append(args, "--skip-publish")
}
cmd := exec.Command("goreleaser", args...)
cmd.Stdout = os.Stdout cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr cmd.Stderr = os.Stderr
err := cmd.Run() err := cmd.Run()