Skip to content

Update Kubo version tested against - #253

Merged
cstamas merged 9 commits into
masterfrom
fix/update-kubo
Jan 20, 2026
Merged

Update Kubo version tested against#253
cstamas merged 9 commits into
masterfrom
fix/update-kubo

Conversation

@cstamas

Copy link
Copy Markdown
Collaborator

From ancient 0.18.1 to latest 0.39.0. This causes test breakage as some deprecated endpoints like object are dropped.

From ancient 0.18.1 to latest 0.39.0. This causes test
breakage as some deprecated endpoints like `object` are
dropped.
@cstamascstamas self-assigned this Jan 19, 2026
@cstamas

cstamas commented Jan 19, 2026

Copy link
Copy Markdown
CollaboratorAuthor

Seems Ant and Maven disagree on multihash artifact: Ant want to build against JAR that does not contains this commit:
multiformats/java-multihash@8ed5ec0

I'd really vote to clean up the build, drop Ant and drop "hosting" JARs in git repository....

Maven build: pass
Ant build: fails as in Ant universe Multihash.decode(String) throws an IOException.

@cstamascstamas changed the title Update Kubo versionUpdate Kubo version tested againstJan 19, 2026

@vorburgervorburger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as-is. But I'm not merging this, as it's marked Draft, and fails to pass the build.

@cstamas I would have no problem if you wanted to just "self merge" this (without further review from me) once it passes the build... but perhaps see with @ianopolous if he would also be cool with this, or if we would provide "4 eyes, and no self merges" on this project.

@cstamas

Copy link
Copy Markdown
CollaboratorAuthor

Is left draft on purpose, see comment above: maven and ant use different versions of libs.

I don't plan to "self merge", would always like at least one pair of extra eyes.

But we need to fix the deps first.

@ianopolous

Copy link
Copy Markdown
Collaborator

Feel free to remove ant in this repo.

Comment threadsrc/main/java/io/ipfs/api/Peer.java Outdated
return new Peer(new MultiAddress(val.apply("Addr")), Cid.decode(val.apply("Peer")), latency, val.apply("Muxer"), val.apply("Streams"));
String peerId = val.apply("Peer");
Multihash peer; // Multihash bug? Throws IAEx Base1 not supported
try {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PeerIds are not Multihashes strictly. They are base58 encoded, without a multibase prefix. Modern ones start with 1. See how we handle it here:
https://github.com/Peergos/Peergos/blob/master/src/peergos/shared/io/ipfs/Cid.java#L148

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied fix, pls review

@vorburger

Copy link
Copy Markdown
Collaborator

Feel free to remove ant in this repo.

Done in just merged #254.

@manandbytes

Copy link
Copy Markdown
Contributor

image: 'ipfs/kubo:v0.18.1'
should be updated as well

@cstamas
cstamas marked this pull request as ready for review January 20, 2026 12:00
Comment threaddocker-compose.yml Outdated
- "5001:5001"
user: "ipfs"
command: [ "daemon", "--enable-pubsub-experiment" ]
command: [ "daemon", "--enable-pubsub-experiment --enable-namesys-pubsub --routing=dhtclient" ]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

command is an array, elements in quotes and comma-separated, otherrwise fails with

ipfs-daemon-1 | Error: unknown option "enable-pubsub-experiment --enable-namesys-pubsub --routing"
- command: [ "daemon", "--enable-pubsub-experiment" ]+ command: [ "daemon", "--enable-pubsub-experiment", "--enable-namesys-pubsub", "--routing=dhtclient" ]

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch, thanks a ton! Fixed.

Comment threaddocker-compose.yml Outdated
- "5001:5001"
user: "ipfs"
command: [ "daemon", "--enable-pubsub-experiment" ]
command: [ "daemon", "--enable-pubsub-experiment --enable-namesys-pubsub --routing=dhtclient" ]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
command: [ "daemon", "--enable-pubsub-experiment--enable-namesys-pubsub--routing=dhtclient" ]
command: [ "daemon", "--enable-pubsub-experiment", "--enable-namesys-pubsub", "--routing=dhtclient" ]

@cstamas
cstamas merged commit 6731aa9 into masterJan 20, 2026
2 checks passed
@cstamas
cstamas deleted the fix/update-kubo branch January 20, 2026 15:33
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@cstamas@ianopolous@vorburger@manandbytes