1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-24 04:16:27 +02:00
Carlos Alexandro Becker d82565fb24
fix: go mod tidy everywhere
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-08-27 14:12:19 -03:00

27 lines
487 B
Markdown

---
title: Environment Variables
series: customization
hideFromIndex: true
weight: 19
---
Global environment variables to be passed down to all hooks and builds.
This is useful for `GO111MODULE`, for example. You can have your
`.goreleaser.yaml` file like the following:
```yaml
# .goreleaser.yml
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
builds:
- binary: program
```
This way, both `go mod tidy` and the underlying `go build` will have
`GO111MODULE` set to `on`.