From 6379013e41ffbd4e3e1b9ee0e4d7e364a3073a06 Mon Sep 17 00:00:00 2001 From: Laurent Senta Date: Thu, 3 Mar 2022 14:46:31 +0100 Subject: [PATCH] ci: tweak example testing to pass with internal config package --- .circleci/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.circleci/main.yml b/.circleci/main.yml index 78ff3d707..9838b0f4d 100644 --- a/.circleci/main.yml +++ b/.circleci/main.yml @@ -120,11 +120,18 @@ jobs: # make sure the examples run against the current version of go-ipfs go mod edit -replace github.com/ipfs/go-ipfs=./../../.. go mod tidy + + # use the internal config package when we test the current version of go-ipfs + sed -i.bak 's;"github.com/ipfs/go-ipfs-config";"github.com/ipfs/go-ipfs/config";' ./main.go + go test -v ./... # restore the go.mod and go.sum files to their original state mv go.mod.bak go.mod mv go.sum.bak go.sum + + # restore the main.go to its original state + mv main.go.bak main.go working_directory: ~/ipfs/go-ipfs/docs/examples/go-ipfs-as-a-library - run: