releaser: use -mod=vendor, not go mod download

This commit is contained in:
AJ ONeal 2020-10-20 23:25:01 +00:00
parent a5d20a86b1
commit 665b0d2729
1 changed files with 2 additions and 3 deletions

View File

@ -2,13 +2,12 @@
# Make sure to check the documentation at http://goreleaser.com # Make sure to check the documentation at http://goreleaser.com
before: before:
hooks: hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./... - go generate ./...
builds: builds:
- env: - env:
- CGO_ENABLED=0 - CGO_ENABLED=0
flags:
- -mod=vendor
goos: goos:
- linux - linux
- windows - windows