From 2123531f692387ce62ec9ec68058121b68e7e560 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Tue, 13 Jun 2023 17:55:23 +0200 Subject: [PATCH] kubo-migrator: add migration from 13 to 14 https://github.com/ipfs/fs-repo-migrations/releases/tag/fs-repo-13-to-14%2Fv1.0.0 This will be used to upgrade the Kubo repo when updating to Kubo 0.21. --- .../networking/kubo-migrator/all-migrations.nix | 4 +++- pkgs/applications/networking/kubo-migrator/unwrapped.nix | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/kubo-migrator/all-migrations.nix b/pkgs/applications/networking/kubo-migrator/all-migrations.nix index 08a9967de4a0..ecfddcf64915 100644 --- a/pkgs/applications/networking/kubo-migrator/all-migrations.nix +++ b/pkgs/applications/networking/kubo-migrator/all-migrations.nix @@ -36,8 +36,9 @@ let }; # Concatenation of the latest repo version and the version of that migration - version = "13.1.0.0"; + version = "14.1.0.0"; + fs-repo-13-to-14 = fs-repo-common "fs-repo-13-to-14" "1.0.0"; fs-repo-12-to-13 = fs-repo-common "fs-repo-12-to-13" "1.0.0"; fs-repo-11-to-12 = fs-repo-common "fs-repo-11-to-12" "1.0.2"; fs-repo-10-to-11 = fs-repo-common "fs-repo-10-to-11" "1.0.1"; @@ -53,6 +54,7 @@ let fs-repo-0-to-1 = fs-repo-common "fs-repo-0-to-1" "1.0.1"; all-migrations = [ + fs-repo-13-to-14 fs-repo-12-to-13 fs-repo-11-to-12 fs-repo-10-to-11 diff --git a/pkgs/applications/networking/kubo-migrator/unwrapped.nix b/pkgs/applications/networking/kubo-migrator/unwrapped.nix index dcf206d5c8aa..b5531851641a 100644 --- a/pkgs/applications/networking/kubo-migrator/unwrapped.nix +++ b/pkgs/applications/networking/kubo-migrator/unwrapped.nix @@ -11,12 +11,12 @@ buildGoModule rec { owner = "ipfs"; repo = "fs-repo-migrations"; # Use the latest git tag here, since v2.0.2 does not - # contain the latest migration fs-repo-11-to-12/v1.0.2 + # contain the latest migration fs-repo-13-to-14/v1.0.0 # The fs-repo-migrations code itself is the same between # the two versions but the migration code, which is built # into separate binaries, is not. - rev = "fs-repo-12-to-13/v1.0.0"; - hash = "sha256-QQone7E2Be+jVfnrwqQ1Ny4jo6mSDHhaY3ErkNdn2f8="; + rev = "fs-repo-13-to-14/v1.0.0"; + hash = "sha256-y0IYSKKZlFbPrTUC6XqYKhS3a79rieNGBL58teWMlC4="; }; sourceRoot = "source/fs-repo-migrations";