Skip to content

chore: bump go-libp2p-kad-dht to v0.42#11398

Merged
lidel merged 11 commits into
masterfrom
chore/bump-dht
Jul 21, 2026
Merged

chore: bump go-libp2p-kad-dht to v0.42#11398
lidel merged 11 commits into
masterfrom
chore/bump-dht

Conversation

@guillaumemichel

@guillaumemichel guillaumemichel commented Jul 20, 2026

Copy link
Copy Markdown
Member

Updates Kubo to the new unified IPNS/DHT value-record storage:

  • Bumps go-libp2p-kad-dht to v0.42.1 and boxo
  • Purges obsolete pre-v0.42 DHT value records from existing repositories.
  • Prevents publishing empty-directory IPNS records.
  • Clarifies online and offline record-retention behavior in the changelog.

Depends on ipfs/boxo#1189.

@guillaumemichel guillaumemichel changed the title chore: bump go-libp2p-kad-dht to v0.42.0 chore: bump go-libp2p-kad-dht to v0.42 Jul 20, 2026

@gammazero gammazero left a comment

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.

Looks good.

Once boxo PR is merged, this can be taken out of draft and merged as well. After that, final version of boxo can be created, and then kubo can be updated to depend on them.

Comment thread core/node/storage.go Outdated
Bumps boxo, bringing the offline router retention change (records are
served until their EOL, no receive-age cap by default; ipfs/boxo#1189)
and a gateway 304 cache-freshness fix (ipfs/boxo#1188).

The v0.43 "Unified IPNS record storage" highlight now spells out how
retention works: with the offline router and the DHT sharing the /dht
datastore prefix, online nodes drop value records 48h after storage
(the DHT's value-store GC) while offline nodes keep them until EOL.

@lidel lidel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me. What I pushed and why:

  • boxo side (ipfs/boxo#1189): restored the offline router to no age cap by default, it now serves a record until its EOL, so an offline node (no republisher) doesn't silently drop still-valid records after 48h. Online nodes keep that cap via the DHT's GC over the shared /dht store.
  • here: bumped boxo to that commit and rewrote the "Unified IPNS record storage" changelog highlight to spell out online vs offline retention.

Needs ipfs/boxo#1189 to land first (go.mod points at its branch); the pin bumps to the merge commit once it merges.

@guillaumemichel
guillaumemichel marked this pull request as ready for review July 21, 2026 19:53
@guillaumemichel
guillaumemichel requested a review from a team as a code owner July 21, 2026 19:53
@guillaumemichel
guillaumemichel requested a review from lidel July 21, 2026 19:54
@lidel lidel self-assigned this Jul 21, 2026
lidel added 2 commits July 22, 2026 00:18
Pick up boxo main HEAD (4794174d), which includes the merged offline
router value-store change (ipfs/boxo#1189). This brings the root module,
the kubo-as-a-library example, and test/dependencies onto one boxo pin;
they previously pointed at three different commits.

- go-libp2p moves to ec408fcc as a transitive floor required by boxo
- changelog: note the one-time full-datastore key scan on first start
  after upgrading, and update the pinned boxo and go-libp2p hashes
Spell out that the repo has three go.mod files that must stay on the
same dependency versions, and that a bare `go mod tidy` only tidies one
module and lets pins drift between them.

@lidel lidel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Pushed two commits with sync and automation of dep bumps, CI is green.

@lidel
lidel merged commit cbcfdd9 into master Jul 21, 2026
24 checks passed
@lidel
lidel deleted the chore/bump-dht branch July 21, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants