From 0bfcb8fa663c5229e6ed1ae2ea5b97efec26b7a9 Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Thu, 11 Aug 2022 12:03:54 -0400 Subject: [PATCH] all: Bump Go Version to 1.18 (#95) Reference: https://github.com/hashicorp/terraform-plugin-log/issues/94 Updated via: ```shell go mod edit -go=1.18 go mod tidy go fix ./... ``` And textual file updates, such as GitHub Actions workflows and the README. --- .changelog/95.txt | 3 +++ .github/workflows/ci-go.yml | 2 +- README.md | 2 +- go.mod | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changelog/95.txt diff --git a/.changelog/95.txt b/.changelog/95.txt new file mode 100644 index 0000000..9e5b7a6 --- /dev/null +++ b/.changelog/95.txt @@ -0,0 +1,3 @@ +```release-note:note +This Go module has been updated to Go 1.18 per the [Go support policy](https://golang.org/doc/devel/release.html#policy). Any consumers building on earlier Go versions may experience errors. +``` diff --git a/.github/workflows/ci-go.yml b/.github/workflows/ci-go.yml index 865340e..1d92c20 100644 --- a/.github/workflows/ci-go.yml +++ b/.github/workflows/ci-go.yml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [ '1.18', '1.17' ] + go-version: [ '1.19', '1.18' ] steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 diff --git a/README.md b/README.md index 979f524..c99e423 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ terraform-plugin-log is a helper module for logging from Terraform providers. It 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.17** or later must be used when including this project as a dependency. +Currently, that means Go **1.18** or later must be used when including this project as a dependency. ## Contributing diff --git a/go.mod b/go.mod index 1277793..560c264 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/hashicorp/terraform-plugin-log -go 1.17 +go 1.18 require ( github.com/google/go-cmp v0.5.8