File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ func (c *Controller) UpdateBuildHistory(ctx context.Context, req *controlapi.Upd
276
276
return & controlapi.UpdateBuildHistoryResponse {}, err
277
277
}
278
278
279
- func translateLegacySolveRequest (req * controlapi.SolveRequest ) error {
279
+ func translateLegacySolveRequest (req * controlapi.SolveRequest ) {
280
280
// translates ExportRef and ExportAttrs to new Exports (v0.4.0)
281
281
if legacyExportRef := req .Cache .ExportRefDeprecated ; legacyExportRef != "" {
282
282
ex := & controlapi.CacheOptionsEntry {
@@ -302,18 +302,13 @@ func translateLegacySolveRequest(req *controlapi.SolveRequest) error {
302
302
req .Cache .Imports = append (req .Cache .Imports , im )
303
303
}
304
304
req .Cache .ImportRefsDeprecated = nil
305
- return nil
306
305
}
307
306
308
307
func (c * Controller ) Solve (ctx context.Context , req * controlapi.SolveRequest ) (* controlapi.SolveResponse , error ) {
309
308
atomic .AddInt64 (& c .buildCount , 1 )
310
309
defer atomic .AddInt64 (& c .buildCount , - 1 )
311
310
312
- // This method registers job ID in solver.Solve. Make sure there are no blocking calls before that might delay this.
313
-
314
- if err := translateLegacySolveRequest (req ); err != nil {
315
- return nil , err
316
- }
311
+ translateLegacySolveRequest (req )
317
312
318
313
defer func () {
319
314
time .AfterFunc (time .Second , c .throttledGC )
You can’t perform that action at this time.
0 commit comments