Skip to content

Commit 9b78cc9

Browse files
committed
CI: resolve Go path before sudoing
See actions/setup-go issue 104 Signed-off-by: Akihiro Suda <[email protected]>
1 parent d67721d commit 9b78cc9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
if: startsWith(matrix.os, 'ubuntu')
7777
run: |
7878
make test
79-
sudo make root-test
79+
make root-test
8080
working-directory: src/github.com/containerd/continuity
8181

8282
- name: Non-Linux Tests

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test:
6666

6767
root-test:
6868
@echo "+ $@"
69-
@go test ${TEST_REQUIRES_ROOT_PACKAGES} -test.root
69+
@go test -exec sudo ${TEST_REQUIRES_ROOT_PACKAGES} -test.root
7070

7171
test-compile:
7272
@echo "+ $@"

0 commit comments

Comments
 (0)