go mod tidy during bootstrap target to ensure consistent go.sum state

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman 2021-04-14 16:56:25 -04:00
parent ebe23d582a
commit 6ddea51209
No known key found for this signature in database
GPG key ID: 5CB45AE22BAB7EA7

View file

@ -81,6 +81,7 @@ bootstrap: ## Download and install all go dependencies (+ prep tooling in the ./
mkdir -p $(RESULTSDIR)
# install go dependencies
go mod download
go mod tidy # note: it is important that the go.sum is kept in a consistent state at all times (especially during release)
# install utilities
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(TEMPDIR)/ v1.26.0
curl -sSfL https://raw.githubusercontent.com/wagoodman/go-bouncer/master/bouncer.sh | sh -s -- -b $(TEMPDIR)/ v0.2.0