Skip to content

Commit 7dfe371

Browse files
committed
ci: tweak example testing to pass with internal config package
1 parent a752783 commit 7dfe371

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.circleci/main.yml

+7
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,18 @@ jobs:
120120
# make sure the examples run against the current version of go-ipfs
121121
go mod edit -replace github.com/ipfs/go-ipfs=./../../..
122122
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+
123127
go test -v ./...
124128
125129
# restore the go.mod and go.sum files to their original state
126130
mv go.mod.bak go.mod
127131
mv go.sum.bak go.sum
132+
133+
# restore the main.go to its original state
134+
mv main.go.bak main.go
128135
working_directory: ~/ipfs/go-ipfs/docs/examples/go-ipfs-as-a-library
129136

130137
- run:

0 commit comments

Comments
 (0)