goserv/examples/build.sh

11 lines
136 B
Bash
Raw Normal View History

2020-09-30 08:29:24 +00:00
#!/bin/bash
set -e
set -u
export GOFLAGS="-mod=vendor"
go mod tidy
go mod vendor
go generate -mod=vendor ./...
go build -mod=vendor .