@@ -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,
@@ -196,7 +196,7 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
196
196
targetPlatform , actualPlatform ,
197
197
req .GetSkipLibrariesDiscovery (),
198
198
libsManager ,
199
- paths .NewPathList (req .Library ... ),
199
+ paths .NewPathList (req .GetLibrary () ... ),
200
200
outStream , errStream , req .GetVerbose (), req .GetWarnings (),
201
201
progressCB ,
202
202
)
@@ -226,10 +226,10 @@ func Compile(ctx context.Context, req *rpc.CompileRequest, outStream, errStream
226
226
keys := buildProperties .Keys ()
227
227
sort .Strings (keys )
228
228
for _ , key := range keys {
229
- r .BuildProperties = append (r .BuildProperties , key + "=" + buildProperties .Get (key ))
229
+ r .BuildProperties = append (r .GetBuildProperties () , key + "=" + buildProperties .Get (key ))
230
230
}
231
231
if ! req .GetDoNotExpandBuildProperties () {
232
- r .BuildProperties , _ = utils .ExpandBuildProperties (r .BuildProperties )
232
+ r .BuildProperties , _ = utils .ExpandBuildProperties (r .GetBuildProperties () )
233
233
}
234
234
}()
235
235
0 commit comments