Bump Go versions (#75)
* go-version: Pin to 1.20
* go.mod: Require Go 1.18
* ci: Test against Go 1.20
* ci: avoid testing on incompatible versions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 2eb9cc9..cf92145 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -25,10 +25,9 @@
- ubuntu-latest
- macos-latest
go:
- - 1.16
- - 1.17
- - 1.18
- - 1.19
+ - "1.18"
+ - "1.19"
+ - "1.20"
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # https://github.com/actions/checkout/releases/tag/v3.3.0
diff --git a/.go-version b/.go-version
index e715196..5fb5a6b 100644
--- a/.go-version
+++ b/.go-version
@@ -1 +1 @@
-1.16
+1.20
diff --git a/go.mod b/go.mod
index ab9924b..f83f31e 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
module github.com/hashicorp/terraform-json
-go 1.13
+go 1.18
require (
github.com/davecgh/go-spew v1.1.1
@@ -11,3 +11,8 @@
github.com/zclconf/go-cty v1.10.0
github.com/zclconf/go-cty-debug v0.0.0-20191215020915-b22d67c1ba0b
)
+
+require (
+ github.com/mitchellh/reflectwalk v1.0.2 // indirect
+ golang.org/x/text v0.3.8 // indirect
+)
diff --git a/go.sum b/go.sum
index 0886738..1a5ee46 100644
--- a/go.sum
+++ b/go.sum
@@ -42,8 +42,9 @@
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
-golang.org/x/text v0.3.5 h1:i6eZZ+zk0SOf0xgBpEpPD18qWcJda6q1sxt3S0kzyUQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY=
+golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=