Skip to content

Commit cb70a39

Browse files
committed
[breaking] report platforms installation dir in compile result
1 parent aba6a78 commit cb70a39

File tree

5 files changed

+100
-85
lines changed

5 files changed

+100
-85
lines changed

arduino/cores/cores.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,11 @@ func (release *PlatformRelease) String() string {
359359
}
360360

361361
// ToRPCPlatformReference creates a gRPC PlatformReference message out of this PlatformRelease
362-
func (release *PlatformRelease) ToRPCPlatformReference() *rpc.PlatformReference {
363-
return &rpc.PlatformReference{
364-
Id: release.Platform.String(),
365-
Version: release.Version.String(),
362+
func (release *PlatformRelease) ToRPCPlatformReference() *rpc.InstalledPlatformReference {
363+
return &rpc.InstalledPlatformReference{
364+
Id: release.Platform.String(),
365+
Version: release.Version.String(),
366+
InstallDir: release.InstallDir.String(),
366367
}
367368
}
368369

rpc/cc/arduino/cli/commands/v1/common.pb.go

Lines changed: 47 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rpc/cc/arduino/cli/commands/v1/common.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,13 @@ message Platform {
8282
bool deprecated = 10;
8383
}
8484

85-
message PlatformReference {
85+
message InstalledPlatformReference {
8686
// Platform ID (e.g., `arduino:avr`).
8787
string id = 1;
8888
// Version of the platform.
8989
string version = 2;
90+
// Installation directory of the platform
91+
string install_dir = 3;
9092
}
9193

9294
message Board {

0 commit comments

Comments
 (0)