Skip to content

Commit

Permalink
all: Bump minimum Go module version to 1.22 (hashicorp#366)
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 10, 2024
1 parent 684541e commit 3a343a6
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/NOTES-20240910-073447.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: NOTES
body: 'all: This release introduces no functional changes. It does however include
dependency updates which address upstream CVEs.'
time: 2024-09-10T07:34:47.671425-04:00
custom:
Issue: "366"
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5

strategy:
matrix:
go-version: [ '1.21', '1.22' ]

steps:

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go-version }}
go-version-file: 'go.mod'

- name: Run linters
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ linters:
- godot
- gofmt
- gosimple
- govet
- ineffassign
- makezero
- misspell
Expand All @@ -22,7 +23,6 @@ linters:
- unconvert
- unparam
- unused
- vet

run:
# Prevent false positive timeouts in CI
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The Null provider is a rather-unusual provider that has constructs that intentio
## Requirements

* [Terraform](https://www.terraform.io/downloads)
* [Go](https://go.dev/doc/install) (1.21)
* [Go](https://go.dev/doc/install) (1.22)
* [GNU Make](https://www.gnu.org/software/make/)
* [golangci-lint](https://golangci-lint.run/usage/install/#local-installation) (optional)

Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/terraform-providers/terraform-provider-null

go 1.21

toolchain go1.21.6
go 1.22.7

require (
github.com/hashicorp/terraform-plugin-framework v1.11.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 3a343a6

Please sign in to comment.