Skip to content

Commit 00864a0

Browse files
committed
Don't try to search for platforms if the supposed path is not a folder
1 parent b48bc6b commit 00864a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cores/packagemanager/loader.go

+3
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ func (pm *PackageManager) loadPlatforms(targetPackage *cores.Package, packageFol
172172
continue
173173
}
174174
platformPath := filepath.Join(packageFolder, architecure)
175+
if info, err := os.Stat(platformPath); err != nil || !info.IsDir() {
176+
continue
177+
}
175178

176179
// There are two possible platform folder structures:
177180
// - ARCHITECTURE/boards.txt

0 commit comments

Comments
 (0)