Skip to content

Commit 5b654fd

Browse files
author
Wilken Rivera
committed
makefile: Update install steps for doc genereation packages
1 parent 1ea4009 commit 5b654fd

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

Makefile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,9 @@ install-gen-deps: ## Install dependencies for code generation
1818
@(cd $(TEMPDIR) && GO111MODULE=on go get github.com/alvaroloes/enumer@master)
1919

2020
# grab files from github and install them using go install, then remove files again.
21-
@mkdir cmd
22-
@mkdir cmd/struct-markdown
23-
@curl -sSfL -q https://raw.githubusercontent.com/hashicorp/packer/master/cmd/struct-markdown/main.go -o cmd/struct-markdown/main.go
24-
@curl -sSfL -q https://raw.githubusercontent.com/hashicorp/packer/master/cmd/struct-markdown/template.go -o cmd/struct-markdown/template.go
25-
@go install ./cmd/struct-markdown # in the packer repo
21+
@go install github.com/hashicorp/packer/cmd/struct-markdown@latest # in the packer repo
2622

27-
@mkdir cmd/mapstructure-to-hcl2
28-
@curl -sSfL -q https://raw.githubusercontent.com/hashicorp/packer/master/cmd/mapstructure-to-hcl2/mapstructure-to-hcl2.go -o cmd/mapstructure-to-hcl2/mapstructure-to-hcl2.go
29-
@go install ./cmd/mapstructure-to-hcl2 # in the packer repo
30-
31-
@rm -rf cmd
23+
@go install github.com/hashicorp/packer/cmd/mapstructure-to-hcl2@latest # in the packer repo
3224

3325
install-lint-deps: ## Install linter dependencies
3426
# Pinning golangci-lint at v1.23.8 as --new-from-rev seems to work properly; the latest 1.24.0 has caused issues with memory consumption

0 commit comments

Comments
 (0)