@@ -54,7 +54,7 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
54
54
// the optionality of this property, otherwise we would have no way of knowing if the property
55
55
// was set in the request or it's just the default boolean value.
56
56
if reqExportBinaries := req .GetExportBinaries (); reqExportBinaries != nil {
57
- exportBinaries = reqExportBinaries .Value
57
+ exportBinaries = reqExportBinaries .GetValue ()
58
58
}
59
59
60
60
pme , release := instances .GetPackageManagerExplorer (req .GetInstance ())
@@ -110,13 +110,13 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
110
110
r .BuildPlatform = buildPlatform .ToRPCPlatformReference ()
111
111
112
112
// Setup sign keys if requested
113
- if req .KeysKeychain != "" {
113
+ if req .GetKeysKeychain () != "" {
114
114
boardBuildProperties .Set ("build.keys.keychain" , req .GetKeysKeychain ())
115
115
}
116
- if req .SignKey != "" {
116
+ if req .GetSignKey () != "" {
117
117
boardBuildProperties .Set ("build.keys.sign_key" , req .GetSignKey ())
118
118
}
119
- if req .EncryptKey != "" {
119
+ if req .GetEncryptKey () != "" {
120
120
boardBuildProperties .Set ("build.keys.encrypt_key" , req .GetEncryptKey ())
121
121
}
122
122
// At the current time we do not have a way of knowing if a board supports the secure boot or not,
@@ -197,7 +197,7 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
197
197
targetPlatform , actualPlatform ,
198
198
req .GetSkipLibrariesDiscovery (),
199
199
libsManager ,
200
- paths .NewPathList (req .Library ... ),
200
+ paths .NewPathList (req .GetLibrary () ... ),
201
201
outStream , errStream , req .GetVerbose (), req .GetWarnings (),
202
202
progressCB ,
203
203
)
@@ -231,10 +231,10 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
231
231
keys := buildProperties .Keys ()
232
232
sort .Strings (keys )
233
233
for _ , key := range keys {
234
- r .BuildProperties = append (r .BuildProperties , key + "=" + buildProperties .Get (key ))
234
+ r .BuildProperties = append (r .GetBuildProperties () , key + "=" + buildProperties .Get (key ))
235
235
}
236
236
if ! req .GetDoNotExpandBuildProperties () {
237
- r .BuildProperties , _ = utils .ExpandBuildProperties (r .BuildProperties )
237
+ r .BuildProperties , _ = utils .ExpandBuildProperties (r .GetBuildProperties () )
238
238
}
239
239
}()
240
240
0 commit comments