tools/prepare-source: also call go generate ./...
To ensure that all generated code is up to date.
This commit is contained in:
parent
0962fbd306
commit
c07674e1f4
1 changed files with 6 additions and 1 deletions
|
|
@ -10,7 +10,12 @@ GO_BINARY=$(go env GOPATH)/bin/go$GO_VERSION
|
|||
go get golang.org/dl/go$GO_VERSION
|
||||
$GO_BINARY download
|
||||
|
||||
# prepare the sources
|
||||
# ensure that the code is formatted correctly, ...
|
||||
$GO_BINARY fmt ./...
|
||||
|
||||
# ... go.mod and go.sum are up to date, ...
|
||||
$GO_BINARY mod tidy
|
||||
$GO_BINARY mod vendor
|
||||
|
||||
# ... and all code has been regenerated from its sources.
|
||||
$GO_BINARY generate ./...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue