Skip to content

Commit

Permalink
all: Bump minimum Go module version to 1.22 (#250)
Browse files Browse the repository at this point in the history
* all: Bump minimum Go module version to 1.22

* add changelog
  • Loading branch information
austinvalle authored Sep 9, 2024
1 parent becfcf6 commit 7c8c662
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changes/unreleased/NOTES-20240906-165503.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: NOTES
body: 'all: This Go module has been updated to Go 1.22 per the [Go support policy](https://go.dev/doc/devel/release#policy).
It is recommended to review the [Go 1.22 release notes](https://go.dev/doc/go1.22)
before upgrading. Any consumers building on earlier Go versions may experience errors.'
time: 2024-09-06T16:55:03.892589-04:00
custom:
Issue: "250"
2 changes: 1 addition & 1 deletion .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.22', '1.21' ]
go-version: [ '1.23', '1.22' ]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ linters:
- forcetypeassert
- gofmt
- gosimple
- govet
- ineffassign
- makezero
- misspell
Expand All @@ -22,4 +23,3 @@ linters:
- unconvert
- unparam
- unused
- vet
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Plugin SDK or higher to be able to be used with terraform-plugin-mux.

This project follows the [support policy](https://golang.org/doc/devel/release.html#policy) of Go as its support policy. 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.

## Documentation

Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/hashicorp/terraform-plugin-mux

go 1.21
go 1.22.0

toolchain go1.21.6
toolchain go1.22.7

require (
github.com/google/go-cmp v0.6.0
Expand Down
2 changes: 1 addition & 1 deletion tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module tools

go 1.21
go 1.22.7

require github.com/hashicorp/copywrite v0.19.0

Expand Down

0 comments on commit 7c8c662

Please sign in to comment.