about summary refs log tree commit diff
path: root/pkgs/data
diff options
context:
space:
mode:
authorLuflosi <luflosi@luflosi.de>2022-04-15 21:09:07 +0200
committerYt <raphael@megzari.com>2022-04-16 07:38:13 -0400
commitfaad370edcb37162401be50d45526f52bb16a713 (patch)
treef48c6e0edf87dae723139c395d543939aed56914 /pkgs/data
parent8a5e51525d44b1468018c0b0a4c0758bcb533657 (diff)
nixos/ipfs: fix the services.ipfs.autoMigrate option
Apparently this was never properly tested and never worked. When the IPFS repo needs upgrading, the first call to ipfs, which is run before running the migration, fails with the error message "Error: ipfs repo needs migration".
To fix this, simply run the migration before any `ipfs config` calls but don't run it when `dataDir` is empty and we need to call `ipfs init`.
Writing a NixOS test for this would require keeping at least two versions of IPFS in Nixpkgs, which we don't currently do.
Diffstat (limited to 'pkgs/data')
0 files changed, 0 insertions, 0 deletions