Skip to content

Commit

Permalink
Makefile: replace enumer upstream with dmarkham's
Browse files Browse the repository at this point in the history
Since the enumer implementation we used hadn't been updated for 5+
years, this didn't work with recent linux/go versions, and enumer
crashed while attempting to parse/analyse the source files.

There's another alternative on Github, forked from the one we used,
which seems more maintained now, and does produce the expected files in
the SDK.
  • Loading branch information
lbajolet-hashicorp committed Jun 3, 2024
1 parent b2dd4bc commit 185736d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ci: testrace ## Test in continuous integration
install-gen-deps: ## Install dependencies for code generation
@go install github.com/mna/[email protected]
# Pinning enumer at master branch; the latest tagged release is out of date.
@go install github.com/alvaroloes/enumer@master
@go install github.com/dmarkham/enumer@master

@go install github.com/hashicorp/packer-plugin-sdk/cmd/packer-sdc

Expand Down
45 changes: 40 additions & 5 deletions communicator/sshkey/algorithm_enumer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 185736d

Please sign in to comment.