diff --git a/.gitignore b/.gitignore index 32ea57c..c9d1d5c 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,5 @@ # Misc _gopath _gocache + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..c8eaab6 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,31 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy + # you may remove this if you don't need go generate + - go generate ./... +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - darwin + main: ./cmd/gomodproxy/main.go +archives: + - replacements: + darwin: Darwin + linux: Linux + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/README.md b/README.md index d4a28ad..5c88c74 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,10 @@ gomodproxy is a caching proxy for [Go modules]. Go 1.11 has introduced optional proxy support via GOPROXY environment variable. It is essential for use cases where you want to have better control over your dependencies and handle scenarios when GitHub is down or some open-source dependency has been removed. +## Releasing + +See https://goreleaser.com/quick-start/ + ## Getting started gomodproxy requires Go 1.11 or newer. There are no plans to support `vgo` or Go 1.11 beta versions.