add go mod tidy to bootstrap make target

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman 2021-04-21 08:45:51 -04:00
parent 7ae4504182
commit 9c7906364d
No known key found for this signature in database
GPG Key ID: 5CB45AE22BAB7EA7

View File

@ -108,6 +108,7 @@ bootstrap-tools: $(TEMPDIR)
.PHONY: bootstrap-go .PHONY: bootstrap-go
bootstrap-go: bootstrap-go:
go mod download 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)
.PHONY: bootstrap .PHONY: bootstrap
bootstrap: $(RESULTSDIR) bootstrap-go bootstrap-tools ## Download and install all go dependencies (+ prep tooling in the ./tmp dir) bootstrap: $(RESULTSDIR) bootstrap-go bootstrap-tools ## Download and install all go dependencies (+ prep tooling in the ./tmp dir)