Skip to content

Commit cdd7f4e

Browse files
committed
Fix integration test in Windows
1 parent 211a7ea commit cdd7f4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/cli/compile/compile.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"fmt"
2222
"io"
2323
"os"
24+
"path/filepath"
2425
"strings"
2526

2627
"github.com/arduino/arduino-cli/commands"
@@ -333,7 +334,7 @@ func runCompileCommand(cmd *cobra.Command, args []string, srv rpc.ArduinoCoreSer
333334
// to the sketch path, so that the sketch is portable.
334335
if ok, err := libDir.IsInsideDir(sketchPath); err == nil && ok {
335336
if ref, err := libDir.RelFrom(sketchPath); err == nil {
336-
libDir = ref
337+
libDir = paths.New(filepath.ToSlash(ref.String()))
337338
}
338339
}
339340
libs += fmt.Sprintln(" - dir: " + libDir.String())

0 commit comments

Comments
 (0)