Skip to content
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

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) #261

Closed
michaeldcanady opened this issue Aug 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@michaeldcanady
Copy link

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\[email protected]\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\[email protected]\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)

@michaeldcanady michaeldcanady added the bug Something isn't working label Aug 20, 2024
@michaeldcanady
Copy link
Author

seems to be same issue as #187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant