Repository: libp2p/go-libp2p
Pull request #2937 (2024-08-23 10:50:05)

ci: uci/update-go
This PR was created automatically by the @web3-bot as a part of the [Unified CI](https://github.com/ipdxco/unified-github-workflows) project.

MarcoPolo: @galargh why is this modifying generated files?
galargh: @MarcoPolo It looks like that's `go fix` that's doing it.
MarcoPolo: @galargh I don't think so. I ran `go fix` and it didn't make those changes. It seems related to this commit: https://github.com/libp2p/go-libp2p/pull/2937/commits/79bc8a44fe74ebb987edac7f278dbb07956dab02 
[fix: stop using the deprecated io/ioutil package](https://github.com/libp2p/go-libp2p/pull/2937/commits/79bc8a44fe74ebb987edac7f278dbb07956dab02)
MarcoPolo: I'm force pushing to remove that change.


Patch:
diff --git a/examples/go.mod b/examples/go.mod
index 578546a8..e4ba4983 100644
--- a/examples/go.mod
+++ b/examples/go.mod
@@ -1,6 +1,6 @@
 module github.com/libp2p/go-libp2p/examples
 
-go 1.21
+go 1.22
 
 require (
 	github.com/gogo/protobuf v1.3.2
diff --git a/examples/ipfs-camp-2019/go.mod b/examples/ipfs-camp-2019/go.mod
index 0d0b29c0..268135ab 100644
--- a/examples/ipfs-camp-2019/go.mod
+++ b/examples/ipfs-camp-2019/go.mod
@@ -1,6 +1,6 @@
 module github.com/libp2p/go-libp2p/examples/ipfs-camp-2019
 
-go 1.21
+go 1.22
 
 require (
 	github.com/gogo/protobuf v1.3.2
diff --git a/examples/pubsub/basic-chat-with-rendezvous/go.mod b/examples/pubsub/basic-chat-with-rendezvous/go.mod
index cd90b4d5..c45d1986 100644
--- a/examples/pubsub/basic-chat-with-rendezvous/go.mod
+++ b/examples/pubsub/basic-chat-with-rendezvous/go.mod
@@ -1,6 +1,6 @@
 module github.com/libp2p/go-libp2p/examples/pubsub/chat
 
-go 1.21
+go 1.22
 
 require (
 	github.com/libp2p/go-libp2p v0.33.0
diff --git a/examples/pubsub/chat/go.mod b/examples/pubsub/chat/go.mod
index 6c53916b..3f1e6c2f 100644
--- a/examples/pubsub/chat/go.mod
+++ b/examples/pubsub/chat/go.mod
@@ -1,6 +1,6 @@
 module github.com/libp2p/go-libp2p/examples/pubsub/chat
 
-go 1.21
+go 1.22
 
 require (
 	github.com/gdamore/tcell/v2 v2.5.2
diff --git a/go.mod b/go.mod
index 6359d180..684f3544 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,6 @@
 module github.com/libp2p/go-libp2p
 
-go 1.21
+go 1.22
 
 retract v0.26.1 // Tag was applied incorrectly due to a bug in the release workflow.
 


Test patch:
diff --git a/scripts/test_analysis/go.mod b/scripts/test_analysis/go.mod
index 3fcf14bf..84ffc92b 100644
--- a/scripts/test_analysis/go.mod
+++ b/scripts/test_analysis/go.mod
@@ -1,6 +1,6 @@
 module github.com/libp2p/go-libp2p/scripts/test_analysis
 
-go 1.22.1
+go 1.22
 
 require github.com/glebarez/go-sqlite v1.22.0
 
diff --git a/test-plans/PingDockerfile b/test-plans/PingDockerfile
index 5c413aa4..4c5ffe9c 100644
--- a/test-plans/PingDockerfile
+++ b/test-plans/PingDockerfile
@@ -1,7 +1,7 @@
 # syntax=docker/dockerfile:1
 # This is run from the parent directory to copy the whole go-libp2p codebase
 
-FROM golang:1.21-alpine AS builder
+FROM golang:1.23-alpine AS builder
 
 WORKDIR /app/
 
diff --git a/test-plans/go.mod b/test-plans/go.mod
index e963be7b..466a55e9 100644
--- a/test-plans/go.mod
+++ b/test-plans/go.mod
@@ -1,6 +1,6 @@
 module github.com/libp2p/go-libp2p/test-plans/m/v2
 
-go 1.21
+go 1.22
 
 require (
 	github.com/go-redis/redis/v8 v8.11.5