Skip to content

Commit

Permalink
Always run goformat after regenerating code
Browse files Browse the repository at this point in the history
The code generated for the mock files has all the imports
in one block, while goformat will insert spacing between
groups of imports. Thus if you don't run goformat after
re-generating mocks, you'll see bogus whitespace changes.

Signed-off-by: Daniel P. Berrange <[email protected]>
  • Loading branch information
berrange committed Jun 2, 2017
1 parent 4625b61 commit 8e4e366
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ all: build manifests

generate:
./hack/build-go.sh generate ${WHAT}
goimports -w -local kubevirt.io cmd/ pkg/ tests/

build: sync fmt vet compile

Expand Down

0 comments on commit 8e4e366

Please sign in to comment.