From d6fa9519b384b1d48737cdbbd368e60af8c577bc Mon Sep 17 00:00:00 2001 From: George Aristy Date: Wed, 20 Feb 2019 17:34:30 -0500 Subject: [PATCH] (#14) Fix release build --- .dependency_license | 1 + .gitignore | 2 ++ .goreleaser.yml | 3 +++ README.md | 2 +- release.sh | 3 ++- 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.dependency_license b/.dependency_license index 32a8f61..3e0f01d 100644 --- a/.dependency_license +++ b/.dependency_license @@ -11,3 +11,4 @@ go\.sum, Ignore \.goreleaser\.yml, Ignore \.pdd, Ignore \.travis\.yml, Ignore +\.idea, Ignore diff --git a/.gitignore b/.gitignore index ef06fa8..2642c36 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.idea/ + " goreleaser dist/ diff --git a/.goreleaser.yml b/.goreleaser.yml index 33ca847..d3a530c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -8,6 +8,9 @@ # - go generate ./... project_name: go-gitlint +before: + hooks: + - go mod download builds: - env: diff --git a/README.md b/README.md index d1299d5..2a9da0e 100644 --- a/README.md +++ b/README.md @@ -30,5 +30,5 @@ To run `make checks` you will need: * Ruby 2.x (for `pdd`) * [pdd](https://github.com/yegor256/pdd) (a ruby gem - `gem install pdd`) * [golangci-lint](https://github.com/golangci/golangci-lint) v1.14.0 (expected to be in the `./bin` folder) -* [weasel](https://github.com/comcast/weasel)(`go get github.com/comcast/weasel`) +* [weasel](https://github.com/comcast/weasel) (`go get github.com/comcast/weasel`) diff --git a/release.sh b/release.sh index 6a48136..7432f24 100755 --- a/release.sh +++ b/release.sh @@ -19,4 +19,5 @@ docker run --rm --privileged \ -v /var/run/docker.sock:/var/run/docker.sock \ -w /go/src/github.com/user/repo \ -e GITHUB_TOKEN \ - goreleaser/goreleaser:v0.101-cgo release + -e GO111MODULE=on \ + goreleaser/goreleaser:v0.101 release --rm-dist