Skip to content

Commit

Permalink
build: add support for go 1.22
Browse files Browse the repository at this point in the history
Few day's back go 1.22 is release. Let's add that
as valid version to build on. Also, adding 1.22 as
test matric for linux build CI.

https://tip.golang.org/doc/go1.22

Signed-off-by: subhamkrai <[email protected]>
  • Loading branch information
subhamkrai committed Mar 27, 2024
1 parent cce4d52 commit 43e0c1c
Show file tree
Hide file tree
Showing 5 changed files with 3,501 additions and 755 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
strategy:
fail-fast: false
matrix:
go-version: ["1.21"]
go-version: ["1.21","1.22"]
steps:
- name: checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ all: build

# Controller-gen version
# f284e2e8... is master ahead of v0.5.0 which has ability to generate embedded objectmeta in CRDs
CONTROLLER_GEN_VERSION=v0.11.3
CONTROLLER_GEN_VERSION=v0.14.0

# Set GOBIN
ifeq (,$(shell go env GOBIN))
Expand Down
2 changes: 1 addition & 1 deletion build/makelib/golang.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ GO_TEST_FLAGS ?=
# ====================================================================================
# Setup go environment

GO_SUPPORTED_VERSIONS ?= 1.21
GO_SUPPORTED_VERSIONS ?= 1.21|1.22

GO_PACKAGES := $(foreach t,$(GO_SUBDIRS),$(GO_PROJECT)/$(t)/...)
GO_INTEGRATION_TEST_PACKAGES := $(foreach t,$(GO_INTEGRATION_TESTS_SUBDIRS),$(GO_PROJECT)/$(t)/integration)
Expand Down
Loading

0 comments on commit 43e0c1c

Please sign in to comment.