Skip to content

Commit ce2bb0b

Browse files
committed
Make sure ctx.BuildPath is absolute
1 parent bbf7051 commit ce2bb0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arduino-builder/main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import (
3737
"io/ioutil"
3838
"os"
3939
"os/exec"
40+
"path/filepath"
4041
"runtime"
4142
"strings"
4243
"syscall"
@@ -311,7 +312,7 @@ func main() {
311312
printCompleteError(err)
312313
}
313314
}
314-
ctx.BuildPath = buildPath
315+
ctx.BuildPath, _ = filepath.Abs(buildPath)
315316

316317
// FLAG_BUILD_CACHE
317318
buildCachePath, err := gohasissues.Unquote(*buildCachePathFlag)

0 commit comments

Comments
 (0)