fix makefile

This commit is contained in:
Megan Marsh 2020-12-11 13:37:03 -08:00
parent 395920f917
commit c90e3d8466
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
TEST?=$(shell go list ./...)
COUNT?=1
VET?=$(shell go list ./...)
ACC_TEST_BUILDERS?=all
ACC_TEST_PROVISIONERS?=all
# Get the current full sha from git
@ -123,7 +124,7 @@ generate: install-gen-deps ## Generate dynamically generated code
@find website/pages -path website/pages/partials/packer-plugin-sdk -prune -o -type f | xargs grep -l '^<!-- Code generated' | xargs rm -f
@echo "==> removing autogenerated code..."
@find post-processor helper builder provisioner -type f | xargs grep -l '^// Code generated' | xargs rm -f
PROJECT_ROOT="$(pwd)" go generate ./...
PROJECT_ROOT="$(shell pwd)" go generate $(shell go list ./... | grep -v packer-plugin-sdk)
generate-check: generate ## Check go code generation is on par
@echo "==> Checking that auto-generated code is not changed..."