Repository: skupperproject/skupper
Pull request #1710 (2024-10-08 20:29:29)

update to go 1.22


Patch:
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 050bf71a..281e2eb2 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -7,7 +7,7 @@ orbs:
 executors:
   go_cimg:
     docker:
-      - image: cimg/go:1.21
+      - image: cimg/go:1.22
     environment:
       CGO_ENABLED: 0
 
@@ -109,7 +109,7 @@ commands:
           command: sudo rm -rf /usr/local/go
       - docker/install-docker
       - go/install:
-          version: "1.21.9"
+          version: "1.22.8"
       - kube-orb/install-kubectl
       - run: make
 
diff --git a/Dockerfile.bootstrap b/Dockerfile.bootstrap
index e331859c..f1e1f547 100644
--- a/Dockerfile.bootstrap
+++ b/Dockerfile.bootstrap
@@ -1,4 +1,4 @@
-FROM --platform=$BUILDPLATFORM golang:1.21 AS builder
+FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
 
 ARG TARGETOS
 ARG TARGETARCH
diff --git a/Dockerfile.config-sync b/Dockerfile.config-sync
index 7676272a..ae863a7e 100644
--- a/Dockerfile.config-sync
+++ b/Dockerfile.config-sync
@@ -1,4 +1,4 @@
-FROM --platform=$BUILDPLATFORM golang:1.21 AS builder
+FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
 
 ARG TARGETOS
 ARG TARGETARCH
diff --git a/Dockerfile.controller b/Dockerfile.controller
index dc645fc4..d7164564 100644
--- a/Dockerfile.controller
+++ b/Dockerfile.controller
@@ -1,4 +1,4 @@
-FROM --platform=$BUILDPLATFORM golang:1.21 AS builder
+FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
 
 WORKDIR /go/src/app
 COPY go.mod .
diff --git a/Dockerfile.controller-podman b/Dockerfile.controller-podman
index def6ec70..10ace850 100644
--- a/Dockerfile.controller-podman
+++ b/Dockerfile.controller-podman
@@ -1,4 +1,4 @@
-FROM --platform=$BUILDPLATFORM golang:1.21 AS builder
+FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
 
 ARG TARGETOS
 ARG TARGETARCH
diff --git a/Dockerfile.network-console-collector b/Dockerfile.network-console-collector
index d5f19751..7b4a0c95 100644
--- a/Dockerfile.network-console-collector
+++ b/Dockerfile.network-console-collector
@@ -1,4 +1,4 @@
-FROM --platform=$BUILDPLATFORM golang:1.21 AS builder
+FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
 
 ARG TARGETOS
 ARG TARGETARCH
diff --git a/go.mod b/go.mod
index 86de4b2f..e9dc91c6 100644
--- a/go.mod
+++ b/go.mod
@@ -1,17 +1,14 @@
 module github.com/skupperproject/skupper
 
-go 1.21.0
+go 1.22
 
 require (
 	github.com/Azure/go-amqp v1.0.5
 	github.com/briandowns/spinner v1.23.0
 	github.com/cenkalti/backoff/v4 v4.3.0
 	github.com/fsnotify/fsnotify v1.6.0
-	github.com/go-openapi/errors v0.20.3
 	github.com/go-openapi/runtime v0.24.1
 	github.com/go-openapi/strfmt v0.21.3
-	github.com/go-openapi/swag v0.22.8
-	github.com/go-openapi/validate v0.22.0
 	github.com/google/go-cmp v0.6.0
 	github.com/google/uuid v1.5.0
 	github.com/gorilla/handlers v1.5.2
@@ -69,10 +66,13 @@ require (
 	github.com/getkin/kin-openapi v0.124.0 // indirect
 	github.com/go-logr/logr v0.2.0 // indirect
 	github.com/go-openapi/analysis v0.21.2 // indirect
+	github.com/go-openapi/errors v0.20.3 // indirect
 	github.com/go-openapi/jsonpointer v0.20.2 // indirect
 	github.com/go-openapi/jsonreference v0.19.6 // indirect
 	github.com/go-openapi/loads v0.21.1 // indirect
 	github.com/go-openapi/spec v0.20.4 // indirect
+	github.com/go-openapi/swag v0.22.8 // indirect
+	github.com/go-openapi/validate v0.22.0 // indirect
 	github.com/gogo/protobuf v1.3.2 // indirect
 	github.com/golang/protobuf v1.5.3 // indirect
 	github.com/google/gofuzz v1.1.0 // indirect


Test patch:
diff --git a/Dockerfile.ci-test b/Dockerfile.ci-test
index 1171cd4a..0adb05ba 100644
--- a/Dockerfile.ci-test
+++ b/Dockerfile.ci-test
@@ -1,4 +1,4 @@
-FROM --platform=$BUILDPLATFORM golang:1.21 AS builder
+FROM --platform=$BUILDPLATFORM golang:1.22 AS builder
 
 ARG TARGETOS
 ARG TARGETARCH