Skip to content

Commit

Permalink
Update Go Version to 1.18 and update dependencies (closes #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeemster committed Sep 21, 2022
1 parent d99b6e7 commit 8af35fb
Show file tree
Hide file tree
Showing 5 changed files with 179 additions and 479 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.18
-
name: Cache go modules
uses: actions/cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
name: Compile & Test
strategy:
matrix:
go-version: [1.16]
go-version: [1.18]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ bin_windows = $(windows_dir)/$(bin_name)

all:
GO111MODULE=on go get -u github.com/mitchellh/gox
GO111MODULE=on go install github.com/mitchellh/gox
GO111MODULE=on gox -osarch=linux/amd64 -output=$(bin_linux) ./$(src_dir)
GO111MODULE=on gox -osarch=darwin/amd64 -output=$(bin_darwin) ./$(src_dir)
GO111MODULE=on gox -osarch=windows/amd64 -output=$(bin_windows) ./$(src_dir)
Expand All @@ -45,6 +46,7 @@ format:

lint:
GO111MODULE=on go get -u golang.org/x/lint/golint
GO111MODULE=on go install golang.org/x/lint/golint
GO111MODULE=on golint ./$(src_dir)

tidy:
Expand All @@ -57,6 +59,7 @@ tidy:
test:
mkdir -p $(coverage_dir)
GO111MODULE=on go get -u golang.org/x/tools/cmd/cover/...
GO111MODULE=on go install golang.org/x/tools/cmd/cover/...
GO111MODULE=on go test ./$(src_dir) -tags test -v -covermode=count -coverprofile=$(coverage_out)
GO111MODULE=on go tool cover -html=$(coverage_out) -o $(coverage_html)

Expand Down
57 changes: 52 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,57 @@
module github.com/snowplow-devops/terraform-provider-redash

go 1.16
go 1.18

require (
github.com/hashicorp/terraform-plugin-sdk/v2 v2.6.1
github.com/snowplow-devops/redash-client-go v0.4.1
golang.org/x/sys v0.0.0-20210816183151-1e6c022a8912 // indirect
golang.org/x/tools v0.1.5 // indirect
github.com/hashicorp/terraform-plugin-sdk/v2 v2.23.0
github.com/snowplow-devops/redash-client-go v0.5.0
)

require (
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-hclog v1.3.1 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.5 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.6.0 // indirect
github.com/hashicorp/hc-install v0.4.0 // indirect
github.com/hashicorp/hcl/v2 v2.14.0 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.17.3 // indirect
github.com/hashicorp/terraform-json v0.14.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.14.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.7.0 // indirect
github.com/hashicorp/terraform-registry-address v0.0.0-20220623143253-7d51757b572c // indirect
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
github.com/hashicorp/yamux v0.1.1 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/sirupsen/logrus v1.9.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
github.com/vmihailenco/tagparser v0.1.2 // indirect
github.com/zclconf/go-cty v1.11.0 // indirect
golang.org/x/crypto v0.0.0-20220919173607-35f4265a4bc0 // indirect
golang.org/x/net v0.0.0-20220920203100-d0c6ba3f52d9 // indirect
golang.org/x/sys v0.0.0-20220919091848-fb04ddd9f9c8 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006 // indirect
google.golang.org/grpc v1.49.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
)
Loading

0 comments on commit 8af35fb

Please sign in to comment.