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:
parent
aa8e2cf8db
commit
d82565fb24
@ -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
1
go.mod
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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...
|
||||
```
|
||||
|
||||
|
@ -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`.
|
||||
|
||||
|
@ -18,7 +18,7 @@ before:
|
||||
hooks:
|
||||
- make clean
|
||||
- go generate ./...
|
||||
- go mod download
|
||||
- go mod tidy
|
||||
- touch {{ .Env.FILE_TO_TOUCH }}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user