From 66c3c9bcc50b8ac68fe8cc1d28b6ccb1dd3a40ca Mon Sep 17 00:00:00 2001 From: crozzy Date: Thu, 19 Sep 2024 07:56:19 -0700 Subject: [PATCH] chore: align go version with docs Updating to go1.22.7 which is/was the latest patch is not in-line with our own documentation https://github.com/crozzy/claircore/blob/main/docs/contributor/go_version.md. Signed-off-by: crozzy --- .github/workflows/main.yml | 16 ---------------- go.mod | 2 +- toolkit/go.mod | 2 +- updater/driver/go.mod | 2 +- 4 files changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 45a863ab9..efe4b48ce 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -62,22 +62,7 @@ jobs: - name: mdBook Build run: mdbook build - current-go-version: - name: Get go.mod version - runs-on: ubuntu-latest - outputs: - version: ${{ steps.parse-mod.outputs.version }} - steps: - - name: Checkout - uses: actions/checkout@v4 - - id: parse-mod - run: | - go_mod_file="go.mod" - while IFS= read -r line; do if [[ $line =~ ^go\ (.*)$ ]]; then go_ver="${BASH_REMATCH[1]}"; fi; done < $go_mod_file - echo "version=$go_ver" >> $GITHUB_OUTPUT - tests: - needs: current-go-version name: Tests runs-on: ubuntu-latest strategy: @@ -86,7 +71,6 @@ jobs: go: - 'stable' - 'oldstable' - - '${{ needs.current-go-version.outputs.version }}' steps: - name: Check for Previous Run id: previous diff --git a/go.mod b/go.mod index 7c169faa7..034b71de3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/quay/claircore -go 1.22.7 +go 1.22 require ( github.com/Masterminds/semver v1.5.0 diff --git a/toolkit/go.mod b/toolkit/go.mod index fd1a08906..36c7ee394 100644 --- a/toolkit/go.mod +++ b/toolkit/go.mod @@ -1,5 +1,5 @@ module github.com/quay/claircore/toolkit -go 1.22.7 +go 1.22 require github.com/google/go-cmp v0.6.0 diff --git a/updater/driver/go.mod b/updater/driver/go.mod index 4ba0aa2fd..e0c5f6c12 100644 --- a/updater/driver/go.mod +++ b/updater/driver/go.mod @@ -1,6 +1,6 @@ module github.com/quay/claircore/updater/driver -go 1.22.7 +go 1.22 require ( github.com/google/uuid v1.6.0