From 1d100c61a28454d9bcdfa7045958dce1e5d8cab1 Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Wed, 10 Apr 2024 16:27:12 +0300 Subject: [PATCH] chore: bump go to 1.22 (#701) * chore: bump go to 1.22 * chore: use contrete 1.22.2 version --- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 8 ++++---- CONTRIBUTING.md | 2 +- README.md | 2 +- go.mod | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ebc5e29e..f7e54ee0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: 1.22.x - uses: actions/checkout@v4 - name: golangci-lint uses: golangci/golangci-lint-action@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a4b63ef..c4623610 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: 1.22.x - name: Install Snapcraft uses: samuelmeuli/action-snapcraft@v1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 26ab1bb0..4e63f537 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: test: strategy: matrix: - go-version: [1.21.x] + go-version: [1.22.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: @@ -31,7 +31,7 @@ jobs: test-integrity: strategy: matrix: - go-version: [1.21.x] + go-version: [1.22.x] os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} env: @@ -66,7 +66,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: 1.21.x + go-version: 1.22.x - name: Checkout code uses: actions/checkout@v4 - name: Build binaries @@ -91,5 +91,5 @@ jobs: steps: - uses: coverallsapp/github-action@v2 with: - carryforward: "integration-1.21.x ubuntu-latest,integration-1.21.x macos-latest,integration-1.21.x windows-latest,1.21.x ubuntu-latest,1.21.x macos-latest,1.21.x windows-latest" + carryforward: "integration-1.22.x ubuntu-latest,integration-1.22.x macos-latest,integration-1.22.x windows-latest,1.22.x ubuntu-latest,1.22.x macos-latest,1.22.x windows-latest" parallel-finished: true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d70c65f8..5581f935 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,7 +4,7 @@ First off, thanks for taking the time to contribute! Feel free to make Pull Requ # Requirements -Go >= 1.21.0 +Go >= 1.22.0 # Process diff --git a/README.md b/README.md index 4e161a0e..c2136443 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ A Git hooks manager for Node.js, Ruby and many other types of projects. ## Install -With **Go** (>= 1.21): +With **Go** (>= 1.22): ```bash go install github.com/evilmartians/lefthook@latest diff --git a/go.mod b/go.mod index 1e844c23..30d657f9 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/evilmartians/lefthook -go 1.21 +go 1.22.2 require ( github.com/MakeNowJust/heredoc v1.0.0