@@ -43,7 +43,6 @@ import (
43
43
"github.com/arduino/arduino-cli/legacy/builder/phases"
44
44
"github.com/arduino/arduino-cli/legacy/builder/types"
45
45
"github.com/arduino/arduino-cli/legacy/builder/utils"
46
- "github.com/arduino/go-paths-helper"
47
46
)
48
47
49
48
var MAIN_FILE_VALID_EXTENSIONS = map [string ]bool {".ino" : true , ".pde" : true }
@@ -58,7 +57,7 @@ type Builder struct{}
58
57
59
58
func (s * Builder ) Run (ctx * types.Context ) error {
60
59
if ctx .BuildPath == nil {
61
- ctx .BuildPath = paths . New ( bldr .GenBuildPath (ctx .SketchLocation . String ()) )
60
+ ctx .BuildPath = bldr .GenBuildPath (ctx .SketchLocation )
62
61
}
63
62
64
63
if err := bldr .EnsureBuildPathExists (ctx .BuildPath .String ()); err != nil {
@@ -150,7 +149,7 @@ type Preprocess struct{}
150
149
151
150
func (s * Preprocess ) Run (ctx * types.Context ) error {
152
151
if ctx .BuildPath == nil {
153
- ctx .BuildPath = paths . New ( bldr .GenBuildPath (ctx .SketchLocation . String ()) )
152
+ ctx .BuildPath = bldr .GenBuildPath (ctx .SketchLocation )
154
153
}
155
154
156
155
if err := bldr .EnsureBuildPathExists (ctx .BuildPath .String ()); err != nil {
@@ -186,7 +185,7 @@ type ParseHardwareAndDumpBuildProperties struct{}
186
185
187
186
func (s * ParseHardwareAndDumpBuildProperties ) Run (ctx * types.Context ) error {
188
187
if ctx .BuildPath == nil {
189
- ctx .BuildPath = paths . New ( bldr .GenBuildPath (ctx .SketchLocation . String ()) )
188
+ ctx .BuildPath = bldr .GenBuildPath (ctx .SketchLocation )
190
189
}
191
190
192
191
commands := []types.Command {
0 commit comments