-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.11.0 causes errors with //go:generate packer-sdc mapstructure-to-hcl2 #132
Comments
Hello! Thanks for reporting this. I also saw a problem like this when running an old build of "stringer" in a codebase containing In the interests of making this searchable, I'll copy the error message you saw from the other issue into here:
The problem seems to be upstream, tracked in golang/go#51629. It will occur as soon as there's at least one package in your codebase which uses Go 1.18 type parameters, and so I guess The fix was in the
This module doesn't itself depend on |
Newer go-cty version breaks `mapstructure-to-hcl2` tool, breaking the build pipeline in the process. The current recommendation is to fall back on older go-cty version. See: - hashicorp/packer-plugin-sdk#128 - zclconf/go-cty#132 (comment) - zclconf/go-cty#134 (comment) Revert "build(deps): bump github.com/zclconf/go-cty from 1.10.0 to 1.12.1" Revert "build(deps): bump github.com/hashicorp/hcl/v2 from 2.14.1 to 2.15.0" This reverts commit 4bc5b3e. and commit 16bf32b.
Because the following error occurs when executing `go generate ./serverspec/...` ``` $ go generate ./serverspec/... mapstructure-to-hcl2: serverspec.[Config]: Unexpected package creation during export data loading serverspec/provisioner.go:1: running "packer-sdc": exit status 1 ``` c.f. * zclconf/go-cty#132 * thomasklein94/packer-plugin-libvirt@15dc54b
Details: hashicorp/packer-plugin-sdk#128
The text was updated successfully, but these errors were encountered: