From 339386ecdfaea0295f9a5ddfea331359d528e786 Mon Sep 17 00:00:00 2001 From: Syerikjan Kh Date: Mon, 14 Oct 2024 12:21:46 -0400 Subject: [PATCH] chore: bump go version to 1.22 (#1212) --- .github/workflows/ci.yml | 2 +- packages/create-plugin/templates/backend-app/go.mod | 2 +- packages/create-plugin/templates/backend/go.mod | 2 +- packages/create-plugin/templates/github/workflows/ci.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 589f5afdf..47d2d9e96 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -112,7 +112,7 @@ jobs: - uses: actions/setup-go@v5 with: - go-version: '~1.21' + go-version: '~1.22' check-latest: true cache-dependency-path: ./${{ matrix.workingDir }}/go.sum if: ${{ matrix.hasBackend == true }} diff --git a/packages/create-plugin/templates/backend-app/go.mod b/packages/create-plugin/templates/backend-app/go.mod index 5f538de5a..165ee9981 100644 --- a/packages/create-plugin/templates/backend-app/go.mod +++ b/packages/create-plugin/templates/backend-app/go.mod @@ -1,6 +1,6 @@ module github.com/{{ kebabCase orgName }}/{{ kebabCase pluginName }} -go 1.21 +go 1.22 require github.com/grafana/grafana-plugin-sdk-go v0.156.0 diff --git a/packages/create-plugin/templates/backend/go.mod b/packages/create-plugin/templates/backend/go.mod index 375a8236a..746a684cb 100644 --- a/packages/create-plugin/templates/backend/go.mod +++ b/packages/create-plugin/templates/backend/go.mod @@ -1,6 +1,6 @@ module github.com/{{ kebabCase orgName }}/{{ kebabCase pluginName }} -go 1.21 +go 1.22 require github.com/grafana/grafana-plugin-sdk-go v0.156.0 diff --git a/packages/create-plugin/templates/github/workflows/ci.yml b/packages/create-plugin/templates/github/workflows/ci.yml index 8ea8ab711..95238054a 100644 --- a/packages/create-plugin/templates/github/workflows/ci.yml +++ b/packages/create-plugin/templates/github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: if: steps.check-for-backend.outputs.has-backend == 'true' uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' - name: Test backend if: steps.check-for-backend.outputs.has-backend == 'true'