Skip to content

Commit 8e133de

Browse files
committed
Removed real_name field from gRPC Library message
1 parent 5730e2e commit 8e133de

File tree

5 files changed

+116
-133
lines changed

5 files changed

+116
-133
lines changed

Diff for: arduino/libraries/libraries.go

-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ func (library *Library) ToRPCLibrary() (*rpc.Library, error) {
132132
Location: library.Location.ToRPCLibraryLocation(),
133133
ContainerPlatform: platformOrEmpty(library.ContainerPlatform),
134134
Layout: library.Layout.ToRPCLibraryLayout(),
135-
RealName: library.Name,
136135
DotALinkage: library.DotALinkage,
137136
Precompiled: library.Precompiled,
138137
LdFlags: library.LDflags,

Diff for: cli/lib/list.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ func (ir installedResult) String() string {
129129
lastName := ""
130130
for _, libMeta := range ir.installedLibs {
131131
lib := libMeta.GetLibrary()
132-
name := lib.RealName
133-
if name == "" {
134-
name = lib.Name
135-
}
132+
name := lib.Name
136133
if name == lastName {
137134
name = ` "`
138135
} else {

Diff for: docs/UPGRADING.md

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ can be freely renamed.
1919
This change improves the overall code base naming coherence since all the structures involving libraries have the `Name`
2020
field that refers to the library name as it appears in the `library.properties` file.
2121

22+
#### gRPC message `cc.arduino.cli.commands.v1.Library` no longer has `real_name` field
23+
24+
You must use the `name` field instead.
25+
2226
### `github.com/arduino/arduino-cli/arduino/libraries/librariesmanager.LibrariesManager.Install` removed parameter `installLocation`
2327

2428
The method:

0 commit comments

Comments
 (0)