From 12c2f4aed2b2b2fd6e251bb7628dc641adfc7ee7 Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Wed, 21 Feb 2024 21:11:58 +0000 Subject: [PATCH 1/3] Upgrade go version to 1.22 --- .github/workflows/ci.yaml | 8 ++++---- go.mod | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6e5df42..b4cb712 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: [1.19.x, 1.20.x, 1.21.x] + go-version: [1.20.x, 1.21.x, 1.22.x] steps: - name: Checkout Code uses: actions/checkout@v4 @@ -25,7 +25,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - uses: bufbuild/buf-setup-action@v1.28.1 + - uses: bufbuild/buf-setup-action@v1.29.0-1 - name: Test run: make test - name: Lint @@ -33,10 +33,10 @@ jobs: # conflicting guidance, run only on the most recent supported version. # For the same reason, only check generated code on the most recent # supported version. - if: matrix.go-version == '1.21.x' + if: matrix.go-version == '1.22.x' run: make checkgenerate && make lint - name: Check Release # We'll only be building releases w/ latest Go, so we only need to # test that it can be built w/ latest. - if: matrix.go-version == '1.21.x' + if: matrix.go-version == '1.22.x' run: make checkrelease diff --git a/go.mod b/go.mod index f093817..1c8069f 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/bufbuild/knit-go -go 1.19 +go 1.20 require ( buf.build/gen/go/bufbuild/knit/connectrpc/go v1.14.0-20230822193418-257a6c375e3f.1 From f3148e6b137f2d45ed36df94e47d599a4abc84c0 Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Wed, 21 Feb 2024 22:17:32 +0000 Subject: [PATCH 2/3] Check v1 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b4cb712..fdf7443 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - uses: bufbuild/buf-setup-action@v1.29.0-1 + - uses: bufbuild/buf-setup-action@v1 - name: Test run: make test - name: Lint From 5bdc05a527d7301ba7c141abd2e9dfddd9e93e1c Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Thu, 22 Feb 2024 10:43:00 +0000 Subject: [PATCH 3/3] Use buf at specific version --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fdf7443..b4cb712 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -25,7 +25,7 @@ jobs: uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - - uses: bufbuild/buf-setup-action@v1 + - uses: bufbuild/buf-setup-action@v1.29.0-1 - name: Test run: make test - name: Lint