Skip to content

Commit

Permalink
Update to packer-plugin-sdk v0.0.11 and regenerate HCL config
Browse files Browse the repository at this point in the history
The packer 1.7 release changed the protocol version to 5 (also, notably,
the plugin SDK didn't correctly format the protocol information as
expected until v0.0.11). Running the packer-sdk-migrator tool mostly
worked, but left a couple of issues with fields in the config marked as
unused. It appears that the changes to HCL and how mapstructure decodes
things requires that you annotated basic fields with mapstructure
struct tags that don't follow the default mapping.
  • Loading branch information
frightenedmonkey committed Feb 23, 2021
1 parent c4cfdcd commit 4512000
Show file tree
Hide file tree
Showing 4 changed files with 514 additions and 151 deletions.
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ module github.com/YaleUniversity/packer-provisioner-goss
go 1.13

require (
github.com/hashicorp/hcl/v2 v2.2.0
github.com/hashicorp/packer v1.5.1
github.com/zclconf/go-cty v1.1.2-0.20191126233707-f0f7fd24c4af
gopkg.in/yaml.v2 v2.2.7
github.com/hashicorp/hcl/v2 v2.8.0
github.com/hashicorp/packer-plugin-sdk v0.0.11
github.com/zclconf/go-cty v1.7.0
)
Loading

0 comments on commit 4512000

Please sign in to comment.