kubo: 0.28.0 -> 0.29.0

https://github.com/ipfs/kubo/releases/tag/v0.29.0

The FUSE mount functionality is no longer completely broken, so reenable the NixOS test.
This commit is contained in:
Luflosi 2024-06-11 15:43:57 +02:00
parent 8f5f49d8ad
commit 4f8d158986
No known key found for this signature in database
GPG Key ID: 743C5DD6900A1FF0
3 changed files with 6 additions and 8 deletions

View File

@ -1,7 +1,5 @@
{ recurseIntoAttrs, runTest }:
recurseIntoAttrs {
kubo = runTest ./kubo.nix;
# The FUSE functionality is completely broken since Kubo v0.24.0
# See https://github.com/ipfs/kubo/issues/10242
# kubo-fuse = runTest ./kubo-fuse.nix;
kubo-fuse = runTest ./kubo-fuse.nix;
}

View File

@ -23,7 +23,7 @@
with subtest("FUSE mountpoint"):
machine.fail("echo a | su bob -l -c 'ipfs add --quieter'")
# The FUSE mount functionality is broken as of v0.13.0 and v0.17.0.
# The FUSE mount functionality is broken as of v0.13.0. This is still the case with v0.29.0.
# See https://github.com/ipfs/kubo/issues/9044.
# Workaround: using CID Version 1 avoids that.
ipfs_hash = machine.succeed(

View File

@ -7,7 +7,7 @@
buildGoModule rec {
pname = "kubo";
version = "0.28.0"; # When updating, also check if the repo version changed and adjust repoVersion below
version = "0.29.0"; # When updating, also check if the repo version changed and adjust repoVersion below
rev = "v${version}";
passthru.repoVersion = "15"; # Also update kubo-migrator when changing the repo version
@ -15,7 +15,7 @@ buildGoModule rec {
# Kubo makes changes to its source tarball that don't match the git source.
src = fetchurl {
url = "https://github.com/ipfs/kubo/releases/download/${rev}/kubo-source.tar.gz";
hash = "sha256-nq9NpbK9Fql0o1TG8p9lIlnKUnxvMMimz8AYKVozkwY=";
hash = "sha256-udCVyA3NN3RCmVtdIjccfy/RymvrsGJoxlF8DiapP4g=";
};
# tarball contains multiple files/directories
@ -41,9 +41,9 @@ buildGoModule rec {
postPatch = ''
substituteInPlace 'misc/systemd/ipfs.service' \
--replace '/usr/local/bin/ipfs' "$out/bin/ipfs"
--replace-fail '/usr/local/bin/ipfs' "$out/bin/ipfs"
substituteInPlace 'misc/systemd/ipfs-hardened.service' \
--replace '/usr/local/bin/ipfs' "$out/bin/ipfs"
--replace-fail '/usr/local/bin/ipfs' "$out/bin/ipfs"
'';
postInstall = ''