Skip to content

Commit b8f82ce

Browse files
kittaakosvinay-lanka
authored and
vinay-lanka
committed
arduinoGH-612: core search can match Platform#ID too. (arduino#615)
When matching against a Platform#ID, the match must be a case-insensitive exact match. Closes arduino#612. Signed-off-by: Akos Kitta <[email protected]> update compile --build-path to support both relative and absolute flags
1 parent e8bb327 commit b8f82ce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: cli/compile/compile.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ package compile
1818
import (
1919
"context"
2020
"os"
21+
"fmt"
2122

2223
"github.com/arduino/arduino-cli/cli/feedback"
2324

@@ -101,7 +102,11 @@ func run(cmd *cobra.Command, args []string) {
101102
}
102103

103104
sketchPath := initSketchPath(path)
104-
105+
fmt.Println("FLAG LMAO")
106+
fmt.Println(buildPath)
107+
if string(buildPath) != "/" {
108+
buildPath = args[0]
109+
}
105110
_, err = compile.Compile(context.Background(), &rpc.CompileReq{
106111
Instance: inst,
107112
Fqbn: fqbn,

0 commit comments

Comments
 (0)