Skip to content

Commit 5f3e096

Browse files
committed
Update to hashicorp/go-cty
1 parent a64b572 commit 5f3e096

38 files changed

+48
-44
lines changed

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/hashicorp/terraform-plugin-sdk/v2
33
go 1.14
44

55
require (
6-
github.com/agext/levenshtein v1.2.2
6+
github.com/agext/levenshtein v1.2.2 // indirect
77
github.com/agl/ed25519 v0.0.0-20170116200512-5312a6153412 // indirect
88
github.com/apparentlymart/go-cidr v1.0.1
99
github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0
@@ -15,6 +15,7 @@ require (
1515
github.com/google/go-cmp v0.3.1
1616
github.com/hashicorp/errwrap v1.0.0
1717
github.com/hashicorp/go-cleanhttp v0.5.1
18+
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
1819
github.com/hashicorp/go-hclog v0.9.2 // indirect
1920
github.com/hashicorp/go-multierror v1.0.0
2021
github.com/hashicorp/go-plugin v1.2.0

go.sum

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0 h1:MzVXffFU
2222
github.com/apparentlymart/go-dump v0.0.0-20190214190832-042adf3cf4a0/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM=
2323
github.com/apparentlymart/go-textseg v1.0.0 h1:rRmlIsPEEhUTIKQb7T++Nz/A5Q6C9IuX2wFoYVvnCs0=
2424
github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk=
25+
github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec=
2526
github.com/aws/aws-sdk-go v1.15.78 h1:LaXy6lWR0YK7LKyuU0QWy2ws/LWTPfYV/UgfiBu4tvY=
2627
github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM=
2728
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas=
@@ -71,6 +72,8 @@ github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brv
7172
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
7273
github.com/hashicorp/go-cleanhttp v0.5.1 h1:dH3aiDG9Jvb5r5+bYHsikaOUIpcM0xvgMXVoDkXMzJM=
7374
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
75+
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI=
76+
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs=
7477
github.com/hashicorp/go-getter v1.4.0 h1:ENHNi8494porjD0ZhIrjlAHnveSFhY7hvOJrV/fsKkw=
7578
github.com/hashicorp/go-getter v1.4.0/go.mod h1:7qxyCd8rBfcShwsvxgIguu4KbS3l8bUCwg2Umn7RjeY=
7679
github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI=

helper/schema/core_schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package schema
33
import (
44
"fmt"
55

6-
"github.com/zclconf/go-cty/cty"
6+
"github.com/hashicorp/go-cty/cty"
77

88
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema"
99
)

helper/schema/core_schema_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66

77
"github.com/google/go-cmp/cmp"
8-
"github.com/zclconf/go-cty/cty"
8+
"github.com/hashicorp/go-cty/cty"
99

1010
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema"
1111
)

helper/schema/provider_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010

1111
"github.com/google/go-cmp/cmp"
12-
"github.com/zclconf/go-cty/cty"
12+
"github.com/hashicorp/go-cty/cty"
1313

1414
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema"
1515
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"

helper/schema/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"log"
88
"strconv"
99

10-
"github.com/zclconf/go-cty/cty"
10+
"github.com/hashicorp/go-cty/cty"
1111

1212
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
1313
)

helper/schema/resource_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/zclconf/go-cty/cty"
12-
ctyjson "github.com/zclconf/go-cty/cty/json"
11+
"github.com/hashicorp/go-cty/cty"
12+
ctyjson "github.com/hashicorp/go-cty/cty/json"
1313

1414
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/hcl2shim"
1515
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"

helper/schema/shims.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"encoding/json"
66

7-
"github.com/zclconf/go-cty/cty"
8-
ctyjson "github.com/zclconf/go-cty/cty/json"
7+
"github.com/hashicorp/go-cty/cty"
8+
ctyjson "github.com/hashicorp/go-cty/cty/json"
99

1010
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema"
1111
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/hcl2shim"

helper/schema/shims_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
"github.com/google/go-cmp/cmp"
1414
"github.com/google/go-cmp/cmp/cmpopts"
15-
"github.com/zclconf/go-cty/cty"
15+
"github.com/hashicorp/go-cty/cty"
1616

1717
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/hashcode"
1818
"github.com/hashicorp/terraform-plugin-sdk/v2/internal/configs/configschema"

internal/configs/configschema/coerce_value.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package configschema
33
import (
44
"fmt"
55

6-
"github.com/zclconf/go-cty/cty"
7-
"github.com/zclconf/go-cty/cty/convert"
6+
"github.com/hashicorp/go-cty/cty"
7+
"github.com/hashicorp/go-cty/cty/convert"
88
)
99

1010
// CoerceValue attempts to force the given value to conform to the type

0 commit comments

Comments
 (0)