@@ -245,7 +245,7 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
245
245
SkipLibrariesDiscovery : skipLibrariesDiscovery ,
246
246
DoNotExpandBuildProperties : showProperties == arguments .ShowPropertiesUnexpanded ,
247
247
}
248
- compileRes , compileError := compile .Compile (context .Background (), compileRequest , stdOut , stdErr , nil )
248
+ builderRes , compileError := compile .Compile (context .Background (), compileRequest , stdOut , stdErr , nil )
249
249
250
250
var uploadRes * rpc.UploadResult
251
251
if compileError == nil && uploadAfterCompile {
@@ -300,7 +300,7 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
300
300
301
301
libs := ""
302
302
hasVendoredLibs := false
303
- for _ , lib := range compileRes .GetUsedLibraries () {
303
+ for _ , lib := range builderRes .GetUsedLibraries () {
304
304
if lib .GetLocation () != rpc .LibraryLocation_LIBRARY_LOCATION_USER && lib .GetLocation () != rpc .LibraryLocation_LIBRARY_LOCATION_UNMANAGED {
305
305
continue
306
306
}
@@ -325,13 +325,13 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
325
325
profileOut += fmt .Sprintln (" " + newProfileName + ":" )
326
326
profileOut += fmt .Sprintln (" fqbn: " + compileRequest .GetFqbn ())
327
327
profileOut += fmt .Sprintln (" platforms:" )
328
- boardPlatform := compileRes .GetBoardPlatform ()
328
+ boardPlatform := builderRes .GetBoardPlatform ()
329
329
profileOut += fmt .Sprintln (" - platform: " + boardPlatform .GetId () + " (" + boardPlatform .GetVersion () + ")" )
330
330
if url := boardPlatform .GetPackageUrl (); url != "" {
331
331
profileOut += fmt .Sprintln (" platform_index_url: " + url )
332
332
}
333
333
334
- if buildPlatform := compileRes .GetBuildPlatform (); buildPlatform != nil &&
334
+ if buildPlatform := builderRes .GetBuildPlatform (); buildPlatform != nil &&
335
335
buildPlatform .GetId () != boardPlatform .GetId () &&
336
336
buildPlatform .GetVersion () != boardPlatform .GetVersion () {
337
337
profileOut += fmt .Sprintln (" - platform: " + buildPlatform .GetId () + " (" + buildPlatform .GetVersion () + ")" )
@@ -350,12 +350,12 @@ func runCompileCommand(cmd *cobra.Command, args []string) {
350
350
res := & compileResult {
351
351
CompilerOut : stdIO .Stdout ,
352
352
CompilerErr : stdIO .Stderr ,
353
- BuilderResult : result .NewCompileResponse ( compileRes ),
353
+ BuilderResult : result .NewBuilderResult ( builderRes ),
354
354
UploadResult : updatedUploadPortResult {
355
355
UpdatedUploadPort : result .NewPort (uploadRes .GetUpdatedUploadPort ()),
356
356
},
357
357
ProfileOut : profileOut ,
358
- Diagnostics : result .NewCompileDiagnostics (compileRes .GetDiagnostics ()),
358
+ Diagnostics : result .NewCompileDiagnostics (builderRes .GetDiagnostics ()),
359
359
Success : compileError == nil ,
360
360
showPropertiesMode : showProperties ,
361
361
hideStats : preprocess ,
@@ -401,7 +401,7 @@ type updatedUploadPortResult struct {
401
401
type compileResult struct {
402
402
CompilerOut string `json:"compiler_out"`
403
403
CompilerErr string `json:"compiler_err"`
404
- BuilderResult * result.CompileResponse `json:"builder_result"`
404
+ BuilderResult * result.BuilderResult `json:"builder_result"`
405
405
UploadResult updatedUploadPortResult `json:"upload_result"`
406
406
Success bool `json:"success"`
407
407
ProfileOut string `json:"profile_out,omitempty"`
0 commit comments