mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-26 04:22:05 +02:00
cf4aba68d3
* feat: global env * docs: hooks templateable, global env * docs: hooks templateable, global env * feat: templas on before hooks * docs: revert unwanted change * fix: use os.environ too * chore: travis * fix: goreleaser.yml
495 B
495 B
title | series | hideFromIndex | weight |
---|---|---|---|
Environment Variables | customization | true | 30 |
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:
# .goreleaser.yml
env:
- GO111MODULE=on
before:
hooks:
- go mod download
builds:
- binary: program
This way, both go mod download
and the underlying go build
will have
GO111MODULE
set to on
.