File tree Expand file tree Collapse file tree 9 files changed +467
-81
lines changed Expand file tree Collapse file tree 9 files changed +467
-81
lines changed Original file line number Diff line number Diff line change 11* ~
2- cmd / fs-repo-migrations /fs-repo-migrations
2+ fs-repo-migrations /fs-repo-migrations
33sharness /bin /fs-repo-migrations
44sharness /bin /fs-repo- * -to- *
55sharness /bin /go-sleep
Original file line number Diff line number Diff line change 88language : go
99
1010go :
11- - 1.14.x
11+ - " 1.16.x "
1212
1313env :
1414 - TEST_VERBOSE=1
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ module github.com/ipfs/fs-repo-migrations/fs-repo-migrations
33go 1.15
44
55require (
6- github.com/ipfs/go-ipfs v0.7 .1-0.20210325200014-5ee8710c5806
6+ github.com/ipfs/go-ipfs v0.8 .1-0.20210331232424-4cdb67f37daa
77 github.com/ipfs/go-ipfs-api v0.2.0
88)
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ func createFetcher(distPath string) migrations.Fetcher {
3030 const userAgent = "fs-repo-migrations"
3131
3232 if distPath == "" {
33- distPath = migrations .GetDistPathEnv (migrations .CurrentIpfsDist )
33+ distPath = migrations .GetDistPathEnv (migrations .LatestIpfsDist )
3434 }
3535
3636 return migrations .NewMultiFetcher (
Original file line number Diff line number Diff line change 44
55require (
66 github.com/chriscool/go-sleep v0.0.0-20150606204034-743ab5f1bb48
7- github.com/ipfs/ipfs-update v1.6.1-0.20210323142304-8a5f9eabe3fa
7+ github.com/ipfs/ipfs-update v1.7.1
88 github.com/ipfs/iptb v1.4.0
99 github.com/ipfs/iptb-plugins v0.2.1
1010 github.com/jbenet/go-random-files v0.0.0-20190219210431-31b3f20ebded
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -35,12 +35,9 @@ GUEST_TEST_DIR="sharness/$TEST_DIR_BASENAME"
3535
3636CERTIFS=' /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt'
3737
38- # TODO: remove this when migrations are availabe one the distributions site
39- IPFS_DIST_PATH=" /ipfs/QmWLyhqWDsWbcWE8vjmHkzGKLGgvHh84cLxM3ceLsojwrx"
40-
4138# This writes a docker ID on stdout
4239start_docker () {
43- docker run --rm -it -d -v " $CERTIFS " -v " $APP_ROOT_DIR :/mnt" -w " /mnt" -e " IPFS_DIST_PATH= $IPFS_DIST_PATH " " $DOCKER_IMG " /bin/bash
40+ docker run --rm -it -d -v " $CERTIFS " -v " $APP_ROOT_DIR :/mnt" -w " /mnt" " $DOCKER_IMG " /bin/bash
4441}
4542
4643# This takes a docker ID and a command as arguments
Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ test_expect_success "fs-repo-migrations binary is here" '
88 test -f "$LOCAL_FS_REPO_MIG"
99'
1010
11- # TODO: remove this when migrations are availabe at the distributions site
12- export IPFS_DIST_PATH=" /ipfs/QmWLyhqWDsWbcWE8vjmHkzGKLGgvHh84cLxM3ceLsojwrx"
13-
1411test_expect_success " 'fs-repo-migrations -v' works" '
1512 "$LOCAL_FS_REPO_MIG" -v >actual
1613'
You can’t perform that action at this time.
0 commit comments