diff options
Diffstat (limited to 'recipes-containers/kubernetes/kubernetes/0001-build-hack-allow-go-1.20-building.patch')
-rw-r--r-- | recipes-containers/kubernetes/kubernetes/0001-build-hack-allow-go-1.20-building.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/recipes-containers/kubernetes/kubernetes/0001-build-hack-allow-go-1.20-building.patch b/recipes-containers/kubernetes/kubernetes/0001-build-hack-allow-go-1.20-building.patch new file mode 100644 index 00000000..ac2d8c47 --- /dev/null +++ b/recipes-containers/kubernetes/kubernetes/0001-build-hack-allow-go-1.20-building.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 6f67131b030c4c228cabb33d45ae9330cbf8fa0a Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
3 | Date: Tue, 27 Feb 2024 18:05:54 +0000 | ||
4 | Subject: [PATCH] build/hack: allow go 1.20 building | ||
5 | |||
6 | Although k8s checks for, and demands, golang 1.21.x, runtime | ||
7 | tests show that golang 1.20.x is properly building and providing | ||
8 | enough for core functionality. | ||
9 | |||
10 | In an effort to see what else may be lurking, we patch out the | ||
11 | check to allow builds with our 1.20.x toolchain. | ||
12 | |||
13 | Upstream-Status: Inappropriate [embedded specific] | ||
14 | |||
15 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
16 | --- | ||
17 | hack/lib/golang.sh | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/hack/lib/golang.sh b/hack/lib/golang.sh | ||
21 | index 588288285bb..eb2bcc917b8 100755 | ||
22 | --- a/hack/lib/golang.sh | ||
23 | +++ b/hack/lib/golang.sh | ||
24 | @@ -499,7 +499,7 @@ Detected go version: ${go_version[*]}. | ||
25 | Kubernetes requires ${minimum_go_version} or greater. | ||
26 | Please install ${minimum_go_version} or later. | ||
27 | EOF | ||
28 | - return 2 | ||
29 | + return 0 | ||
30 | fi | ||
31 | } | ||
32 | |||
33 | -- | ||
34 | 2.39.2 | ||
35 | |||