Skip to content

Commit 17fd16a

Browse files
authored
Merge pull request #3 from arduino/cmaglie-patch-1
Fix tools path calculation
2 parents 4f3552f + da6d013 commit 17fd16a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func FindToolPath(toolName string, toolVersion *semver.Version) (*paths.Path, er
3030
if err != nil {
3131
return nil, err
3232
}
33-
toolsDir := paths.New(executablePath).Parent()
33+
toolsDir := paths.New(executablePath).Parent().Parent().Parent()
3434
toolPath := toolsDir.Join(toolName, toolVersion.String())
3535
if !toolPath.IsDir() {
3636
return nil, fmt.Errorf("tool not found: %s@%s", toolName, toolVersion)

0 commit comments

Comments
 (0)