Skip to content

Commit 9bb222b

Browse files
committed
Allow both sketch.yaml and .yml (with priority for .yaml)
1 parent 4277480 commit 9bb222b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: arduino/sketch/sketch.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,10 @@ func New(path *paths.Path) (*Sketch, error) {
9494
Metadata: new(Metadata),
9595
}
9696

97-
projectFile := path.Join("sketch.yml")
97+
projectFile := path.Join("sketch.yaml")
98+
if !projectFile.Exist() {
99+
projectFile = path.Join("sketch.yml")
100+
}
98101
if projectFile.Exist() {
99102
prj, err := LoadProjectFile(projectFile)
100103
if err != nil {

0 commit comments

Comments
 (0)