From e523942ff90c9c40a3c629cd8ff97c65e91d312d Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Wed, 30 Mar 2022 19:39:50 +0900 Subject: [PATCH] CI: resolve Go path before sudoing See actions/setup-go issue 104 Signed-off-by: Akihiro Suda --- .github/workflows/ci.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9fc3ea4..4e9ed7ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: if: startsWith(matrix.os, 'ubuntu') run: | make test - sudo make root-test + make root-test working-directory: src/github.com/containerd/continuity - name: Non-Linux Tests diff --git a/Makefile b/Makefile index 256a0b0d..cfb419bc 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ test: root-test: @echo "+ $@" - @go test ${TEST_REQUIRES_ROOT_PACKAGES} -test.root + @go test -exec sudo ${TEST_REQUIRES_ROOT_PACKAGES} -test.root test-compile: @echo "+ $@"