Skip to content

Commit 6a8ffbc

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arduino/libraries/loader.go

Lines changed: 2 additions & 1 deletion
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)