From 660e06c8675e4637e2943592588db24a7ec00b99 Mon Sep 17 00:00:00 2001 From: justinsb Date: Fri, 7 Jun 2024 23:16:46 +0000 Subject: [PATCH] test: use go workspace when testing --- dev/test | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev/test b/dev/test index e110cea8..cc5a8294 100755 --- a/dev/test +++ b/dev/test @@ -27,6 +27,13 @@ cd "${REPO_ROOT}" set -x +# We need go.work to test with our "sub" modules +if [[ -z go.work ]]; then + go work init . +fi +#go work use ./applylib +#go work use ./mockkubeapiserver + pushd mockkubeapiserver CGO_ENABLED=0 go test -count=1 -v ./... popd