1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: go mod tidy everywhere

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2019-08-27 14:12:19 -03:00
parent aa8e2cf8db
commit d82565fb24
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
6 changed files with 8 additions and 7 deletions

View File

@ -3,7 +3,7 @@ env:
- GOPROXY=https://gocenter.io
before:
hooks:
- go mod download
- go mod tidy
builds:
- env:
- CGO_ENABLED=0

1
go.mod
View File

@ -9,6 +9,7 @@ require (
github.com/caarlos0/ctrlc v1.0.0
github.com/campoy/unique v0.0.0-20180121183637-88950e537e7e
github.com/fatih/color v1.7.0
github.com/gogo/protobuf v1.2.0 // indirect
github.com/google/go-github/v25 v25.0.1
github.com/goreleaser/nfpm v0.12.0
github.com/imdario/mergo v0.3.6

View File

@ -7,7 +7,7 @@ const ExampleConfig = `# This is an example goreleaser.yaml file with some sane
before:
hooks:
# you may remove this if you don't use vgo
- go mod download
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:

View File

@ -124,13 +124,13 @@ GOVERSION=$(go version) goreleaser
try to download the dependencies. Since several builds run in parallel, it is
very likely to fail.
You can solve this by running `go mod download` before calling `goreleaser` or
You can solve this by running `go mod tidy` before calling `goreleaser` or
by adding a [hook][] doing that on your `.goreleaser.yaml` file:
```yaml
before:
hooks:
- go mod download
- go mod tidy
# rest of the file...
```

View File

@ -16,11 +16,11 @@ env:
- GO111MODULE=on
before:
hooks:
- go mod download
- go mod tidy
builds:
- binary: program
```
This way, both `go mod download` and the underlying `go build` will have
This way, both `go mod tidy` and the underlying `go build` will have
`GO111MODULE` set to `on`.

View File

@ -18,7 +18,7 @@ before:
hooks:
- make clean
- go generate ./...
- go mod download
- go mod tidy
- touch {{ .Env.FILE_TO_TOUCH }}
```