When running laforge, if you get the following error:
panic: gob: registering duplicate types for "github.com/zclconf/go-cty/cty.primitiveType": cty.primitiveType != cty.primitiveType
The following steps can be taken to fix it:
- Edit
$GOPATH/src/github.com/hashicorp/terraform/vendor/github.com/zclconf/go-cty/cty/types_to_register.go
- Comment out the following import statements:
"math/big"
"github.com/zclconf/go-cty/cty/set"
- Change
func init()
to look like this:
func init() {
InternalTypesToRegister = []interface{}{
// primitiveType{},
// typeList{},
// typeMap{},
// typeObject{},
// typeSet{},
// setRules{},
// set.Set{},
// typeTuple{},
// big.Float{},
// capsuleType{},
[]interface{}(nil),
map[string]interface{}(nil),
45 }
- Rebuild laforge using
go build github.com/gen0cide/laforge/cmd/laforge