Skip to content

Commit

Permalink
deps: Bump Go to 1.22.0 and golang.org/x/tools from 0.23.0 to 0.30.0 (#…
Browse files Browse the repository at this point in the history
…326)

* build(deps): bump golang.org/x/tools from 0.23.0 to 0.30.0

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.23.0 to 0.30.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](golang/tools@v0.23.0...v0.30.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* deps: Bump Go to 1.22.0

* chore: Handle goreleaser config deprecation

* chore: Additional changelog

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Brian Flad <[email protected]>
  • Loading branch information
dependabot[bot] and bflad authored Feb 12, 2025
1 parent 031f7d1 commit fe5175f
Show file tree
Hide file tree
Showing 90 changed files with 109 additions and 99 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
archives:
- format_overrides:
- goos: windows
format: zip
formats: [zip]
before:
hooks:
- go mod download
Expand All @@ -28,7 +28,7 @@ builds:
- linux
goarch:
- amd64
- 386
- "386"
- arm64
ldflags:
- -s -w -X github.com/bflad/tfproviderlint/version.Version={{.Version}} -X github.com/bflad/tfproviderlint/version.VersionPrerelease= -X github.com/bflad/tfproviderlint/version.GitCommit={{.ShortCommit}}
Expand All @@ -42,7 +42,7 @@ builds:
- linux
goarch:
- amd64
- 386
- "386"
- arm64
id: tfproviderlintx
ldflags:
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# v0.31.0

NOTES

* all: This Go module and the associated Docker image has been updated to Go 1.22 per the [Go support policy](https://go.dev/doc/devel/release#policy). Any consumers building on earlier Go versions or dependent on earlier Go version functionality may experience errors. (#326)

BUG FIXES

* all: Prevented Go 1.24 and later `internal error: package XXX without types was imported` errors. (#326)

# v0.30.0

BREAKING CHANGES
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-bookworm
FROM golang:1.22-bookworm
WORKDIR /src
COPY tfproviderlint /usr/bin/tfproviderlint
ENTRYPOINT ["/usr/bin/tfproviderlint"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Helpful tooling for development:

This project follows the [Go support policy](https://golang.org/doc/devel/release.html#policy) for versions. The two latest major releases of Go are supported by the project.

Currently, that means Go **1.21** or later must be used when including this project as a dependency.
Currently, that means Go **1.22** or later must be used when including this project as a dependency.

### Adding an Analyzer

Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module github.com/bflad/tfproviderlint

go 1.21
go 1.22.0

require (
github.com/bflad/gopaniccheck v0.1.0
golang.org/x/tools v0.23.0
golang.org/x/tools v0.30.0
)

require (
golang.org/x/mod v0.19.0 // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/mod v0.23.0 // indirect
golang.org/x/sync v0.11.0 // indirect
)
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/mod v0.19.0 h1:fEdghXQSo20giMthA7cd28ZC+jts4amQ3YMXiP5oMQ8=
golang.org/x/mod v0.19.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/mod v0.23.0 h1:Zb7khfcRGKk+kqfxFaP5tZqCnDZMjC5VtUBs87Hr6QM=
golang.org/x/mod v0.23.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w=
golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20200214201135-548b770e2dfa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/tools v0.23.0 h1:SGsXPZ+2l4JsgaCKkx+FQ9YZ5XEtA1GZYuoDjenLjvg=
golang.org/x/tools v0.23.0/go.mod h1:pnu6ufv6vQkll6szChhK3C3L/ruaIv5eBeztNG8wtsI=
golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY=
golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
2 changes: 1 addition & 1 deletion passes/AT001/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/AT002/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module testdata

go 1.21
go 1.22.0
2 changes: 1 addition & 1 deletion passes/AT003/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module testdata

go 1.21
go 1.22.0
2 changes: 1 addition & 1 deletion passes/AT004/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/AT005/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/AT006/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/AT007/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/AT008/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module testdata

go 1.21
go 1.22.0
2 changes: 1 addition & 1 deletion passes/AT009/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/AT010/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/AT011/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/AT012/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module testdata

go 1.21
go 1.22.0
2 changes: 1 addition & 1 deletion passes/R001/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R002/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R003/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R004/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R005/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R006/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R007/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R009/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module testdata

go 1.21
go 1.22.0
2 changes: 1 addition & 1 deletion passes/R010/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R011/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R012/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R013/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R014/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R015/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R016/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R017/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/R018/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module testdata

go 1.21
go 1.22.0
2 changes: 1 addition & 1 deletion passes/R019/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/S001/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/S002/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/S003/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/S004/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/S005/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/S006/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/S007/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/S008/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/S009/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
2 changes: 1 addition & 1 deletion passes/S010/testdata/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module testdata

go 1.21
go 1.22.0

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.5.0

Expand Down
Loading

0 comments on commit fe5175f

Please sign in to comment.