From abce01965a466dccf34cee6343287476d1f25932 Mon Sep 17 00:00:00 2001 From: Sebastian Cevallos Date: Wed, 21 Nov 2018 17:50:44 -0500 Subject: [PATCH 1/2] Adding goreleaser file --- .goreleaser.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..ac9e7c6b --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,39 @@ +# Release automation via GoReleaser (goreleaser.com) +# Requires a valid GITHUB_TOKEN envar prior to running `goreleaser` +# See https://goreleaser.com/environment/ for more info +--- +release: + github: + owner: golang + name: mock + +builds: + - binary: mockgen + goos: + - darwin + - windows + - linux + goarch: + - amd64 + - 386 + env: + - CGO_ENABLED=0 + main: ./mockgen/ +archive: + format: tar.gz + wrap_in_directory: true + name_template: '{{ .Binary }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + files: + - LICENSE + - README.md +checksum: + name_template: '{{ .Binary }}-{{ .Version }}-checksums.txt' +snapshot: + name_template: "snap-{{ .Commit }}" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' + - 'README' From d20218c8c5beccf8a9e20486fc53c8c9e4178d5c Mon Sep 17 00:00:00 2001 From: scevallos Date: Sun, 20 Oct 2019 20:25:41 -0700 Subject: [PATCH 2/2] adding GO111MODULE, GOPROXY, and GOSUMDB envvars --- .goreleaser.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index ac9e7c6b..e3cdc393 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -18,6 +18,9 @@ builds: - 386 env: - CGO_ENABLED=0 + - GO111MODULE=on + - GOPROXY=https://proxy.golang.org + - GOSUMDB=sum.golang.org main: ./mockgen/ archive: format: tar.gz