From 1158eeb46d3e722530d43fe644909a4b95fa067d Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 15 Oct 2019 11:12:39 +0200 Subject: [PATCH] Update Makefile to @go install ./cmd/mapstructure-to-hcl2 so that we can `make generate` and tests that generated code is what it should be --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index f35c6656f..0a9d7cf85 100644 --- a/Makefile +++ b/Makefile @@ -53,6 +53,7 @@ install-gen-deps: ## Install dependencies for code generation @(cd $(TEMPDIR) && GO111MODULE=on go get github.com/mna/pigeon@master) @(cd $(TEMPDIR) && GO111MODULE=on go get github.com/alvaroloes/enumer@master) @go install ./cmd/struct-markdown + @go install ./cmd/mapstructure-to-hcl2 dev: ## Build and install a development build @grep 'const VersionPrerelease = ""' version/version.go > /dev/null ; if [ $$? -eq 0 ]; then \ @@ -97,6 +98,8 @@ fmt-examples: generate: install-gen-deps ## Generate dynamically generated code @echo "==> removing autogenerated markdown..." @find website/source/ -type f | xargs grep -l '^