Skip to content

Commit

Permalink
fix: bump go version to 1.22 (#185)
Browse files Browse the repository at this point in the history
* fix: bump go version to 1.22

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

* fix: skip govulncheck in image build until 1.22.11 base image is available

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>

---------

Signed-off-by: Dhiraj Bokde <dhirajsb@users.noreply.github.com>
  • Loading branch information
dhirajsb authored Feb 3, 2025
1 parent 46e7488 commit 3d0d4b6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-image-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.13'
go-version: '1.22.11'
- name: Generate Tag
shell: bash
id: tags
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21.13'
go-version: '1.22.11'
- name: Build
run: make build
- name: Check if there are uncommitted file changes
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build the manager binary
FROM registry.access.redhat.com/ubi8/go-toolset:1.21.13 AS builder
FROM registry.access.redhat.com/ubi8/go-toolset:1.22 AS builder
ARG TARGETOS
ARG TARGETARCH

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ test: manifests generate fmt vet govulncheck envtest ## Run tests.
##@ Build

.PHONY: build
build: sync-images manifests generate fmt vet govulncheck ## Build manager binary.
build: sync-images manifests generate fmt vet ## Build manager binary.
go build -o bin/manager cmd/main.go

.PHONY: run
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/opendatahub-io/model-registry-operator

go 1.21
go 1.22

toolchain go1.22.11

require (
github.com/banzaicloud/k8s-objectmatcher v1.8.0
Expand Down

0 comments on commit 3d0d4b6

Please sign in to comment.