Skip to content

Commit b9fe45e

Browse files
committed
Do not exit-error if library with invalid version is found
Fixes #21
1 parent 3765734 commit b9fe45e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arduino/libraries/loader.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ func makeNewLibrary(libraryDir *paths.Path, location LibraryLocation) (*Library,
9090

9191
version := strings.TrimSpace(libProperties["version"])
9292
if v, err := semver.Parse(version); err != nil {
93-
return nil, fmt.Errorf("invalid version %s: %s", version, err)
93+
// FIXME: do it in linter?
94+
//fmt.Printf("invalid version %s for library in %s: %s", version, libraryDir, err)
9495
} else {
9596
library.Version = v
9697
}

0 commit comments

Comments
 (0)