github.com/joselitofilho/goreleaser@v0.155.1-0.20210123221854-e4891856c593/www/docs/customization/env.md (about) 1 --- 2 title: Environment Variables 3 --- 4 5 Global environment variables to be passed down to all hooks and builds. 6 7 This is useful for `GO111MODULE`, for example. You can have your 8 `.goreleaser.yml` file like the following: 9 10 ```yaml 11 # .goreleaser.yml 12 env: 13 - GO111MODULE=on 14 before: 15 hooks: 16 - go mod download 17 builds: 18 - binary: program 19 ``` 20 21 This way, both `go mod download` and the underlying `go build` will have 22 `GO111MODULE` set to `on`. 23