diff --git a/CHANGELOG.md b/CHANGELOG.md index dca46b696..2753861a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,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 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 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 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 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/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 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 (