diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 5ae2c11b..7b23d46c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -67,6 +67,10 @@ jobs: # -w: write back formatted files to disk gofmt -l -w ./ + - name: Run go mod tidy + run: | + go mod tidy + - name: Fail on differences run: | # Exit with status code 1 if there are differences (i.e. unformatted files) diff --git a/go.mod b/go.mod index d2fbfb70..c02c2264 100644 --- a/go.mod +++ b/go.mod @@ -22,13 +22,13 @@ require ( github.com/hashicorp/go-version v1.6.0 github.com/hashicorp/hc-install v0.4.0 github.com/hashicorp/terraform-exec v0.17.3 + github.com/hashicorp/terraform-json v0.14.0 golang.org/x/exp v0.0.0-20221031165847-c99f073a8326 golang.org/x/sync v0.1.0 ) require ( github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/terraform-json v0.14.0 // indirect github.com/zclconf/go-cty v1.11.0 // indirect golang.org/x/crypto v0.1.0 // indirect )