-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,10 @@ | |
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/[email protected]. | ||
var _ gob.GobEncoder = cty.Value{} | ||
|
||
// 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) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,16 @@ underpins the packer server that all plugins must implement. | |
*/ | ||
package rpc | ||
|
||
import "encoding/gob" | ||
import ( | ||
"encoding/gob" | ||
|
||
"github.com/zclconf/go-cty/cty" | ||
) | ||
|
||
// Test that cty types implement the gob.GobEncoder interface. | ||
// Support for encoding/gob was removed in github.com/zclconf/[email protected]. | ||
// Refer to issue ... | ||
var _ gob.GobEncoder = cty.Value{} | ||
|
||
func init() { | ||
gob.Register(new(map[string]string)) | ||
|