Skip to content

Commit

Permalink
feat: bump go version to 1.22
Browse files Browse the repository at this point in the history
Signed-off-by: Bradley Jones <[email protected]>
  • Loading branch information
bradleyjones committed May 2, 2024
1 parent 1f46c74 commit f8e0ba6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- 'v*'

env:
GO_VERSION: "1.21.x"
GO_VERSION: "1.22.x"

jobs:
wait-for-checks:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-unit-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
Static-Analysis:
strategy:
matrix:
go-version: ["1.21.x"]
go-version: ["1.22.x"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
strategy:
matrix:
# test the lower bounds of support, and the latest available
go-version: ["1.21.x"]
go-version: ["1.22.x"]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
Expand Down
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module github.com/anchore/k8s-inventory

go 1.21.0
toolchain go1.22.2
go 1.22.2

require (
github.com/adrg/xdg v0.4.0
Expand Down
4 changes: 2 additions & 2 deletions scripts/install-go.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

GO_VERSION="1.15.7"
GO_VERSION="1.22.2"
ARCH=$(uname | tr '[:upper:]' '[:lower:]')
GO_ARTIFACT="go$GO_VERSION.$ARCH-amd64.tar.gz"
wget "https://dl.google.com/go/$GO_ARTIFACT"
Expand All @@ -12,4 +12,4 @@ export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

go version
go version

0 comments on commit f8e0ba6

Please sign in to comment.