File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
arduino/cores/packagemanager Expand file tree Collapse file tree 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 {
355355}
356356
357357func (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 )
359359
360+ // core := board.Properties["build.core"]
360361 platform := board .PlatformRelease
361362
362363 // maps "PACKAGER:TOOL" => ToolRelease
@@ -368,18 +369,19 @@ func (pm *PackageManager) FindToolsRequiredForBoard(board *cores.Board) ([]*core
368369 for _ , tool := range targetPackage .Tools {
369370 rel := tool .GetLatestInstalled ()
370371 if rel != nil {
371- foundTools [rel .Tool .String () ] = rel
372+ foundTools [rel .Tool .Name ] = rel
372373 }
373374 }
374375 }
375376
376377 // replace the default tools above with the specific required by the current platform
377378 for _ , toolDep := range platform .Dependencies {
379+ pm .Log .WithField ("tool" , toolDep ).Infof ("Required tool" )
378380 tool := pm .FindToolDependency (toolDep )
379381 if tool == nil {
380382 return nil , fmt .Errorf ("tool release not found: %s" , toolDep )
381383 }
382- foundTools [tool .Tool .String () ] = tool
384+ foundTools [tool .Tool .Name ] = tool
383385 }
384386
385387 requiredTools := []* cores.ToolRelease {}
You can’t perform that action at this time.
0 commit comments