diff --git a/solver/llbsolver/bridge.go b/solver/llbsolver/bridge.go index 5f1c83bb122c..0eea4e4ade62 100644 --- a/solver/llbsolver/bridge.go +++ b/solver/llbsolver/bridge.go @@ -97,11 +97,7 @@ func (b *llbBridge) loadResult(ctx context.Context, def *pb.Definition, cacheImp if srcPol != nil { pol = append([]*spb.Policy{srcPol}, pol...) } - polEngine = sourcepolicy.NewEngine(pol) - if err != nil { - return nil, err - } } var cms []solver.CacheManager for _, im := range cacheImports {