Skip to content

Commit cdf106a

Browse files
committed
fix invalid path
1 parent 0bd5bf2 commit cdf106a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/testshared/testshared.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"io/ioutil"
55
"os"
66
"os/exec"
7+
"path/filepath"
78
"strings"
89
"sync"
910
"syscall"
@@ -99,7 +100,7 @@ func (r *LintRunner) RunCommand(command string, args ...string) *RunResult {
99100
r.log.Infof("ran [../golangci-lint %s] in %s", strings.Join(runArgs, " "), time.Since(startedAt))
100101
}(time.Now())
101102

102-
cmd := exec.Command("../golangci-lint", runArgs...)
103+
cmd := exec.Command(filepath.Join("..", "golangci-lint"), runArgs...)
103104
cmd.Env = append(os.Environ(), r.env...)
104105
out, err := cmd.CombinedOutput()
105106
if err != nil {

0 commit comments

Comments
 (0)