nixpkgs/nixos/modules/services/network-filesystems
Luflosi 0eb1d070c8 ipfs-migrator: 1.7.1 -> 2.0.2
https://github.com/ipfs/fs-repo-migrations/releases/tag/v2.0.2

This is pretty much a complete rewrite of the ipfs-migrator package.
In version 2.0.0 a major change was made to the way the migrator works. Before, there was one binary that contained every migration. Now every migration has its own binary. If fs-repo-migrations can't find a required binary in the PATH, it will download it off the internet. To prevent that, build every migration individually, symlink them all into one package and then wrap fs-repo-migrations so it finds the package with all the migrations.
The change to the IPFS NixOS module and the IPFS package is needed because without explicitly specifying a repo version to migrate to, fs-repo-migrations will query the internet to find the latest version. This fails in the sandbox, for example when testing the ipfs passthru tests.
While it may seem like the repoVersion and IPFS version are in sync and the code could be simplified, this is not the case. See https://github.com/ipfs/fs-repo-migrations#when-should-i-migrate for a table with the IPFS versions and corresponding repo versions.
Go 1.17 breaks the migrations, so use Go 1.16 instead. This is also the Go version used in their CI, see 3dc218e300/.github/workflows/test.yml (L4). See https://github.com/ipfs/fs-repo-migrations/pull/140#issuecomment-982715907 for a previous mention of this issue. The issue manifests itself when doing anything with a migration, for example `fs-repo-11-to-12 --help`:
```
panic: qtls.ClientHelloInfo doesn't match

goroutine 1 [running]:
github.com/marten-seemann/qtls-go1-15.init.0()
	github.com/marten-seemann/qtls-go1-15@v0.1.1/unsafe.go:20 +0x132
```
Also add myself as a maintainer for this package.
This fixes the test failure discovered in https://github.com/NixOS/nixpkgs/pull/160914.
See https://github.com/ipfs/fs-repo-migrations/issues/148 to read some of my struggles with updating this package.
2022-02-25 11:12:19 -08:00
..
litestream nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
openafs openafsServer: remove dependency on syslog.target (#150294) 2021-12-11 14:46:23 -05:00
orangefs nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
cachefilesd.nix nixos/cachefilesd: don't set up manually 2020-09-04 16:11:55 +08:00
ceph.nix nixos/ceph: mime-types -> mailcap 2022-01-26 14:30:10 -08:00
davfs2.nix nixos/davfs2: wrap {,u}mount.davfs with setuid=true 2021-05-10 15:54:52 +02:00
diod.nix nixos/diod: fix permissions 2019-02-17 18:26:00 +01:00
drbd.nix nixos/drbd: fix 2021-11-30 21:43:51 +01:00
glusterfs.nix nixos/glusterfs: remove syslog.target from services 2021-12-11 22:43:02 +01:00
ipfs.nix ipfs-migrator: 1.7.1 -> 2.0.2 2022-02-25 11:12:19 -08:00
kbfs.nix nixos/keybase, nixos/kbfs: update service configs; add redirector 2019-12-23 22:55:06 -08:00
moosefs.nix nixos/doc: add moosefs module to release notes 2022-02-03 12:33:44 +01:00
netatalk.nix nixos: convert netatalk to settings-style configuration 2021-05-20 17:39:28 +02:00
nfsd.nix Revert "Merge #96844: nixos/nfsd: run rpc-statd as a normal user" 2020-09-10 21:31:35 +02:00
rsyncd.nix nixos/rsyncd: fix module eval 2022-02-09 08:21:00 +01:00
samba-wsdd.nix treewide: remove duplicates SystemCallFilters 2021-05-13 15:44:56 +03:00
samba.nix nixos/samba: Add openFirewall option 2021-10-19 19:11:02 +11:00
tahoe.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
u9fs.nix u9fs service: start after network.target 2019-06-30 22:43:08 -04:00
webdav-server-rs.nix nixos/webdav-server-rs: init 2021-11-30 10:19:14 +08:00
webdav.nix nixos/webdav: set uid and gid 2021-11-30 10:19:14 +08:00
xtreemfs.nix nixos/doc: clean up defaults and examples 2021-10-04 12:47:20 +02:00
yandex-disk.nix nixos/yandex-disk: add types 2021-01-31 13:10:20 +01:00