@cryptotaxi247 / kubo / commits / 6379013e4

ci: tweak example testing to pass with internal config package

Laurent Senta committed Mar 3, 2022 at 14:46 UTC 6379013e41ffbd4e3e1b9ee0e4d7e364a3073a06
1 file changed +7
.circleci/main.yml
+7
@@ -120,11 +120,18 @@ jobs:
120 # make sure the examples run against the current version of go-ipfs
121 go mod edit -replace github.com/ipfs/go-ipfs=./../../..
122 go mod tidy
123 +
124 + # use the internal config package when we test the current version of go-ipfs
125 + sed -i.bak 's;"github.com/ipfs/go-ipfs-config";"github.com/ipfs/go-ipfs/config";' ./main.go
126 +
127 go test -v ./...
128
129 # restore the go.mod and go.sum files to their original state
130 mv go.mod.bak go.mod
131 mv go.sum.bak go.sum
132 +
133 + # restore the main.go to its original state
134 + mv main.go.bak main.go
135 working_directory: ~/ipfs/go-ipfs/docs/examples/go-ipfs-as-a-library
136
137 - run: