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

[HPR-1108] Add compile time check for go-cty #186

Merged
merged 2 commits into from
Jun 15, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions rpc/cty_encode.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
package rpc

import (
"encoding/gob"

"github.com/zclconf/go-cty/cty"
"github.com/zclconf/go-cty/cty/json"
)

// Test that cty types implement the gob.GobEncoder interface.
// Support for encoding/gob was removed in github.com/zclconf/go-cty@v1.11.0.
var _ gob.GobEncoder = cty.Value{}
sylviamoss marked this conversation as resolved.
Show resolved Hide resolved

// cty.Value is does not know how to encode itself through the wire so we
// transform it to bytes.
func encodeCTYValues(config []interface{}) ([]interface{}, error) {
Expand Down