goserv/examples/build.sh

12 lines
137 B
Bash

#!/bin/bash
set -e
set -u
export GOFLAGS="-mod=vendor"
go mod tidy
go mod vendor
go generate -mod=vendor ./...
go build -mod=vendor .