File tree 1 file changed +5
-3
lines changed
arduino/cores/packagemanager
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -355,8 +355,9 @@ func (pm *PackageManager) GetAllInstalledToolsReleases() []*cores.ToolRelease {
355
355
}
356
356
357
357
func (pm * PackageManager ) FindToolsRequiredForBoard (board * cores.Board ) ([]* cores.ToolRelease , error ) {
358
- // core := board.Properties["build.core"]
358
+ pm . Log . Infof ( "Searching tools required for board %s" , board )
359
359
360
+ // core := board.Properties["build.core"]
360
361
platform := board .PlatformRelease
361
362
362
363
// maps "PACKAGER:TOOL" => ToolRelease
@@ -368,18 +369,19 @@ func (pm *PackageManager) FindToolsRequiredForBoard(board *cores.Board) ([]*core
368
369
for _ , tool := range targetPackage .Tools {
369
370
rel := tool .GetLatestInstalled ()
370
371
if rel != nil {
371
- foundTools [rel .Tool .String () ] = rel
372
+ foundTools [rel .Tool .Name ] = rel
372
373
}
373
374
}
374
375
}
375
376
376
377
// replace the default tools above with the specific required by the current platform
377
378
for _ , toolDep := range platform .Dependencies {
379
+ pm .Log .WithField ("tool" , toolDep ).Infof ("Required tool" )
378
380
tool := pm .FindToolDependency (toolDep )
379
381
if tool == nil {
380
382
return nil , fmt .Errorf ("tool release not found: %s" , toolDep )
381
383
}
382
- foundTools [tool .Tool .String () ] = tool
384
+ foundTools [tool .Tool .Name ] = tool
383
385
}
384
386
385
387
requiredTools := []* cores.ToolRelease {}
You can’t perform that action at this time.
0 commit comments