From 54708f90050c78fc8d7da8a9651019bdcc1fea96 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 21 Jan 2017 19:33:30 -0200 Subject: [PATCH 1/3] added doc --- pipeline/source/source.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pipeline/source/source.go b/pipeline/source/source.go index 0ab543377..c49682b9c 100644 --- a/pipeline/source/source.go +++ b/pipeline/source/source.go @@ -13,6 +13,7 @@ import ( // ErrDirty happens when the repo has uncommitted/unstashed changes var ErrDirty = errors.New("git is currently in a dirty state, commit or stash your changes to continue") +// ErrWrongRef happens when the HEAD reference is different from the tag being built var ErrWrongRef = errors.New("current tag ref is different from HEAD ref, checkout the latest tag to continue") // Pipe to make sure we are in the latest Git tag as source. From 5485dddb959ac611245212765d2f6669b51cd0d4 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 21 Jan 2017 19:36:51 -0200 Subject: [PATCH 2/3] update formula and screenshot --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 054167f37..457c24fe9 100644 --- a/README.md +++ b/README.md @@ -86,21 +86,23 @@ after_success: The release on GitHub looks pretty much like this: -[![image](https://cloud.githubusercontent.com/assets/245435/21578845/09404c8a-cf78-11e6-92d7-165ddc03ca6c.png) +[![image](https://cloud.githubusercontent.com/assets/245435/22177948/e1d77494-e010-11e6-8dc9-c1d3a6eab40e.png) ](https://github.com/goreleaser/goreleaser/releases) -And the [Homebrew formulae](https://github.com/goreleaser/homebrew-tap/blob/master/release.rb) would look like: +And the [Homebrew formulae](https://github.com/goreleaser/homebrew-tap/blob/master/Formula/goreleaser.rb) would look like: ```rb -class Release < Formula +class Goreleaser < Formula desc "Deliver Go binaries as fast and easily as possible" - homepage "https://github.com/goreleaser/goreleaser" - url "https://github.com/goreleaser/goreleaser/releases/download/v0.2.8/release_Darwin_x86_64.tar.gz" - version "v0.2.8" - sha256 "9ee30fc358fae8d248a2d7538957089885da321dca3f09e3296fe2058e7fff74" + homepage "https://goreleaser.github.io/" + url "https://github.com/goreleaser/goreleaser/releases/download/v0.5.8/goreleaser_Darwin_x86_64.tar.gz" + version "v0.5.8" + sha256 "c37784679840fb9e89c445f6176442eb3624d18cf232ff5a1dfe57e905c83d77" + + depends_on "git" def install - bin.install "release" + bin.install "goreleaser" end end ``` From 3a32f2a32dcc0d6ec2d2224e6d1f79b56e949504 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 21 Jan 2017 19:37:06 -0200 Subject: [PATCH 3/3] formulae -> formula --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 457c24fe9..78aae636f 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ goreleaser GoReleaser builds Go binaries for several platforms, creates a GitHub release and then -pushes a Homebrew formulae to a repository. All that wrapped in your favorite CI. +pushes a Homebrew formula to a repository. All that wrapped in your favorite CI. This project adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to root@carlosbecker.com. @@ -89,7 +89,7 @@ The release on GitHub looks pretty much like this: [![image](https://cloud.githubusercontent.com/assets/245435/22177948/e1d77494-e010-11e6-8dc9-c1d3a6eab40e.png) ](https://github.com/goreleaser/goreleaser/releases) -And the [Homebrew formulae](https://github.com/goreleaser/homebrew-tap/blob/master/Formula/goreleaser.rb) would look like: +And the [Homebrew formula](https://github.com/goreleaser/homebrew-tap/blob/master/Formula/goreleaser.rb) would look like: ```rb class Goreleaser < Formula