From e8f8875ef4e6e96f22164faa5e5403d70f9a4a3d Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 16 Feb 2025 12:34:32 +0000 Subject: [PATCH 1/6] chore!: bump go.mod to Go 1.23 and run go fix BREAKING CHANGE: Updating the Go version to 1.23 --- cmd/boxo-migrate/go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/boxo-migrate/go.mod b/cmd/boxo-migrate/go.mod index 69ecad6e5..07d9fa5ad 100644 --- a/cmd/boxo-migrate/go.mod +++ b/cmd/boxo-migrate/go.mod @@ -1,6 +1,6 @@ module github.com/ipfs/boxo/cmd/boxo-migrate -go 1.22 +go 1.23 require github.com/urfave/cli/v2 v2.25.1 From 3bf25859387cfa5cb6d0b90a7adc1c9a30f26b81 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 16 Feb 2025 12:34:33 +0000 Subject: [PATCH 2/6] chore!: bump go.mod to Go 1.23 and run go fix BREAKING CHANGE: Updating the Go version to 1.23 --- cmd/deprecator/go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/deprecator/go.mod b/cmd/deprecator/go.mod index 01efe8339..b6a4b2112 100644 --- a/cmd/deprecator/go.mod +++ b/cmd/deprecator/go.mod @@ -1,6 +1,6 @@ module github.com/ipfs/boxo/cmd/deprecator -go 1.22 +go 1.23 require ( github.com/dave/dst v0.27.2 From d48e1bab724011ed66f7544bd276fd5f73ce0520 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 16 Feb 2025 12:34:40 +0000 Subject: [PATCH 3/6] chore!: bump go.mod to Go 1.23 and run go fix BREAKING CHANGE: Updating the Go version to 1.23 --- examples/go.mod | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/go.mod b/examples/go.mod index 1e4e421cc..47c5b3556 100644 --- a/examples/go.mod +++ b/examples/go.mod @@ -1,8 +1,6 @@ module github.com/ipfs/boxo/examples -go 1.22.0 - -toolchain go1.22.8 +go 1.23 require ( github.com/ipfs/boxo v0.24.3 From 110fbb8d3ac94ca8148217dbd23512f0857d8c91 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 16 Feb 2025 12:34:41 +0000 Subject: [PATCH 4/6] chore!: bump go.mod to Go 1.23 and run go fix BREAKING CHANGE: Updating the Go version to 1.23 --- go.mod | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/go.mod b/go.mod index bd8bdab99..dd7228526 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,6 @@ module github.com/ipfs/boxo -go 1.22.0 - -toolchain go1.22.8 +go 1.23 require ( github.com/alecthomas/units v0.0.0-20240927000941-0f3dac36c52b From 7c24881907f0d5c37460d2a632dbe96af6551a7a Mon Sep 17 00:00:00 2001 From: web3-bot Date: Sun, 16 Feb 2025 12:34:47 +0000 Subject: [PATCH 5/6] fix: stop using the deprecated io/ioutil package --- fetcher/testutil/testutil.go | 1 + gateway/assets/test/main.go | 1 + gateway/backend_blocks.go | 1 + gateway/handler_codec.go | 1 + ipld/merkledag/merkledag.go | 1 + ipns/pb/record.pb.go | 5 +++-- 6 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fetcher/testutil/testutil.go b/fetcher/testutil/testutil.go index 078022b50..ecb7ac102 100644 --- a/fetcher/testutil/testutil.go +++ b/fetcher/testutil/testutil.go @@ -8,6 +8,7 @@ import ( blocks "github.com/ipfs/go-block-format" "github.com/ipfs/go-cid" "github.com/ipld/go-ipld-prime" + // used to make sure we have dagcbor encoding _ "github.com/ipld/go-ipld-prime/codec/dagcbor" cidlink "github.com/ipld/go-ipld-prime/linking/cid" diff --git a/gateway/assets/test/main.go b/gateway/assets/test/main.go index ad3fdd8b1..d27cfa50a 100644 --- a/gateway/assets/test/main.go +++ b/gateway/assets/test/main.go @@ -10,6 +10,7 @@ import ( "github.com/ipfs/boxo/gateway/assets" "github.com/ipfs/go-cid" + // Ensure basic codecs are registered. _ "github.com/ipld/go-ipld-prime/codec/cbor" _ "github.com/ipld/go-ipld-prime/codec/dagcbor" diff --git a/gateway/backend_blocks.go b/gateway/backend_blocks.go index 79cf99607..20c4339bf 100644 --- a/gateway/backend_blocks.go +++ b/gateway/backend_blocks.go @@ -29,6 +29,7 @@ import ( "github.com/ipld/go-car/v2/storage" dagpb "github.com/ipld/go-codec-dagpb" "github.com/ipld/go-ipld-prime" + // Ensure basic codecs are registered. _ "github.com/ipld/go-ipld-prime/codec/cbor" _ "github.com/ipld/go-ipld-prime/codec/dagcbor" diff --git a/gateway/handler_codec.go b/gateway/handler_codec.go index 80d676409..1c93fc9b8 100644 --- a/gateway/handler_codec.go +++ b/gateway/handler_codec.go @@ -13,6 +13,7 @@ import ( "github.com/ipfs/boxo/gateway/assets" "github.com/ipfs/boxo/path" "github.com/ipfs/go-cid" + // Ensure basic codecs are registered. _ "github.com/ipld/go-ipld-prime/codec/cbor" _ "github.com/ipld/go-ipld-prime/codec/dagcbor" diff --git a/ipld/merkledag/merkledag.go b/ipld/merkledag/merkledag.go index d500dc7c7..1c638d139 100644 --- a/ipld/merkledag/merkledag.go +++ b/ipld/merkledag/merkledag.go @@ -13,6 +13,7 @@ import ( format "github.com/ipfs/go-ipld-format" legacy "github.com/ipfs/go-ipld-legacy" dagpb "github.com/ipld/go-codec-dagpb" + // blank import is used to register the IPLD raw codec _ "github.com/ipld/go-ipld-prime/codec/raw" basicnode "github.com/ipld/go-ipld-prime/node/basic" diff --git a/ipns/pb/record.pb.go b/ipns/pb/record.pb.go index 526e12f17..6a9397a68 100644 --- a/ipns/pb/record.pb.go +++ b/ipns/pb/record.pb.go @@ -7,10 +7,11 @@ package pb import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" ) const ( From 87b12f8ed9b15e1cd7892fea91a78a0cbcfc2fcc Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Sun, 16 Feb 2025 22:43:23 +0100 Subject: [PATCH 6/6] docs: update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a197d0418..5fe688217 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ The following emojis are used to highlight certain changes: - `provider`: Prevent multiple instances of reprovider.Reprovide() from running at the same time. [#834](https://github.com/ipfs/boxo/pull/834) - upgrade to `go-libp2p` [v0.39.1](https://github.com/libp2p/go-libp2p/releases/tag/v0.39.1) +- updated Go in `go.mod` to 1.23 [#848](https://github.com/ipfs/boxo/pull/848) ### Removed