@cryptotaxi247 / kubo / commits / 8c6d8d5bd

Add GOIPFSTEST_SKIP_LOCAL_DEVTREE_DEPS_CHECK escape valve

Set this to '1' if you are doing local dev and have redirects in go.mod

Peter Rabbitson committed Dec 14, 2019 at 15:14 UTC 8c6d8d5bd1dc7309e237a3023131822698ad831c
2 files changed +4 -2
test/sharness/t0010-basic-commands.sh
+2 -1
@@ -45,8 +45,9 @@ test_expect_success "ipfs version deps succeeds" '
45 ipfs version deps >deps.txt
46 '
47
48 -test_expect_success "ipfs version deps output looks good" '
48 +test_expect_success "ipfs version deps output looks good ( set \$GOIPFSTEST_SKIP_LOCAL_DEVTREE_DEPS_CHECK to skip this test )" '
49 head -1 deps.txt | grep "go-ipfs@(devel)" &&
50 + [[ "$GOIPFSTEST_SKIP_LOCAL_DEVTREE_DEPS_CHECK" == "1" ]] ||
51 [[ $(tail -n +2 deps.txt | egrep -v -c "^[^ @]+@v[^ @]+( => [^ @]+@v[^ @]+)?$") -eq 0 ]] ||
52 test_fsh cat deps.txt
53 '
test/sharness/t0060-daemon.sh
+2 -1
@@ -108,8 +108,9 @@ test_expect_success "ipfs version deps succeeds" '
108 ipfs version deps >deps.txt
109 '
110
111 -test_expect_success "ipfs version deps output looks good" '
111 +test_expect_success "ipfs version deps output looks good ( set \$GOIPFSTEST_SKIP_LOCAL_DEVTREE_DEPS_CHECK to skip this test )" '
112 head -1 deps.txt | grep "go-ipfs@(devel)" &&
113 + [[ "$GOIPFSTEST_SKIP_LOCAL_DEVTREE_DEPS_CHECK" == "1" ]] ||
114 [[ $(tail -n +2 deps.txt | egrep -v -c "^[^ @]+@v[^ @]+( => [^ @]+@v[^ @]+)?$") -eq 0 ]] ||
115 test_fsh cat deps.txt
116 '