Skip to content

Commit

Permalink
chore: align go version with docs
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
crozzy committed Sep 19, 2024
1 parent f96bfb4 commit 8ac2b06
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,6 @@ 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
Expand All @@ -86,7 +72,6 @@ jobs:
go:
- 'stable'
- 'oldstable'
- '${{ needs.current-go-version.outputs.version }}'
steps:
- name: Check for Previous Run
id: previous
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/quay/claircore

go 1.22.7
go 1.22

require (
github.com/Masterminds/semver v1.5.0
Expand Down
2 changes: 1 addition & 1 deletion toolkit/go.mod
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion updater/driver/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8ac2b06

Please sign in to comment.