Skip to content

Commit

Permalink
[QT-621] cty: use a fork of go-cty that fixes a panic when decoding (#…
Browse files Browse the repository at this point in the history
…112)

Use a fork of `go-cty` that fixes a panic when decoding a Terraform settings
that have attributes set to `null`.

After it has been fixed upstream[0] we should go back to relying on
on the upstream stable release.

[0] zclconf/go-cty#171

Signed-off-by: Ryan Cragun <me@ryan.ec>
  • Loading branch information
ryancragun committed Oct 5, 2023
1 parent 686757b commit 6b43b98
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 91 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Expand Up @@ -94,6 +94,7 @@ linters:
- goheader
- golint
- gomnd
- gomoddirectives # until we remove our go-cty fork
- ifshort
- importas
- interfacer
Expand Down
14 changes: 8 additions & 6 deletions go.mod
Expand Up @@ -2,6 +2,9 @@ module github.com/hashicorp/enos

go 1.21.0

// https://github.com/ryancragun/go-cty/commit/b70d2866762dd2a09605c9755d4e8d997518f0c4
replace github.com/zclconf/go-cty => github.com/ryancragun/go-cty v1.10.1-0.20230928174205-b70d2866762d

require (
github.com/Masterminds/semver/v3 v3.2.1
github.com/aws/aws-sdk-go-v2/config v1.18.39
Expand All @@ -20,17 +23,16 @@ require (
github.com/stretchr/testify v1.8.4
github.com/zclconf/go-cty v1.14.0
golang.org/x/net v0.15.0
golang.org/x/term v0.12.0
golang.org/x/term v0.13.0
golang.org/x/text v0.13.0
google.golang.org/grpc v1.58.0
google.golang.org/grpc v1.58.2
google.golang.org/protobuf v1.31.0
)

require (
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/aws/aws-sdk-go-v2 v1.21.0 // indirect
Expand Down Expand Up @@ -65,8 +67,8 @@ require (
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/crypto v0.13.0 // indirect
golang.org/x/sys v0.12.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230913181813-007df8e322eb // indirect
golang.org/x/crypto v0.14.0 // indirect
golang.org/x/sys v0.13.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231002182017-d307bd883b97 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

0 comments on commit 6b43b98

Please sign in to comment.