hashicorp/packer-plugin-sdk

cannot use cty.Value{} (value of type cty.Value) as gob.GobEncoder value in variable declaration: cty.Value does not implement gob.GobEncoder (missing method GobEncode)

Closed this issue · 1 comments

When filing a bug, please include the following headings if possible. Any
example text in this template can be deleted.

Overview of the Issue

When attempt go build I am getting the following error:
....\go\pkg\mod\github.com\hashicorp\packer-plugin-sdk@v0.5.4\rpc\init.go:21:24: cannot use cty.Value{} (value of type cty.Value) as gob.GobEncoder value in variable declaration: cty.Value does not implement gob.GobEncoder (missing method GobEncode)

Reproduction Steps

  1. create a project using v0.5.4 of sdk
  2. run go build

Packer Plugin SDK version

0.5.4

Operating system and Environment details

OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Log Fragments and crash.log files

PS {project path}> go build

github.com/michaeldcanady/packer-plugin-communicator/internal/communicator

internal\communicator\provisioner.go:27:18: p.config.FlatMapstructure undefined (type Config has no field or method FlatMapstructure)

github.com/hashicorp/packer-plugin-sdk/rpc

....\go\pkg\mod\github.com\hashicorp\packer-plugin-sdk@v0.5.4\rpc\init.go:21:24: cannot use cty.Value{} (value of type cty.Value) as gob.GobEncoder value in variable declaration: cty.Value does not implement gob.GobEncoder (missing method GobEncode)

seems to be same issue as #187