Skip to content

Commit 660e06c

Browse files
committed
test: use go workspace when testing
1 parent 187c2bb commit 660e06c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dev/test

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ cd "${REPO_ROOT}"
2727

2828
set -x
2929

30+
# We need go.work to test with our "sub" modules
31+
if [[ -z go.work ]]; then
32+
go work init .
33+
fi
34+
#go work use ./applylib
35+
#go work use ./mockkubeapiserver
36+
3037
pushd mockkubeapiserver
3138
CGO_ENABLED=0 go test -count=1 -v ./...
3239
popd

0 commit comments

Comments
 (0)