@@ -151,11 +151,11 @@ func toRepoOnly(in string) (string, error) {
151151 return strings .Join (out , "," ), nil
152152}
153153
154- func Build (ctx context.Context , nodes []builder.Node , opts map [string ]Options , docker * dockerutil.Client , configDir string , w progress.Writer ) (resp map [string ]* client.SolveResponse , err error ) {
155- return BuildWithResultHandler (ctx , nodes , opts , docker , configDir , w , nil )
154+ func Build (ctx context.Context , nodes []builder.Node , opts map [string ]Options , docker * dockerutil.Client , cfg * confutil. Config , w progress.Writer ) (resp map [string ]* client.SolveResponse , err error ) {
155+ return BuildWithResultHandler (ctx , nodes , opts , docker , cfg , w , nil )
156156}
157157
158- func BuildWithResultHandler (ctx context.Context , nodes []builder.Node , opts map [string ]Options , docker * dockerutil.Client , configDir string , w progress.Writer , resultHandleFunc func (driverIndex int , rCtx * ResultHandle )) (resp map [string ]* client.SolveResponse , err error ) {
158+ func BuildWithResultHandler (ctx context.Context , nodes []builder.Node , opts map [string ]Options , docker * dockerutil.Client , cfg * confutil. Config , w progress.Writer , resultHandleFunc func (driverIndex int , rCtx * ResultHandle )) (resp map [string ]* client.SolveResponse , err error ) {
159159 if len (nodes ) == 0 {
160160 return nil , errors .Errorf ("driver required for build" )
161161 }
@@ -234,12 +234,12 @@ func BuildWithResultHandler(ctx context.Context, nodes []builder.Node, opts map[
234234 return nil , err
235235 }
236236 localOpt := opt
237- so , release , err := toSolveOpt (ctx , np .Node (), multiDriver , & localOpt , gatewayOpts , configDir , w , docker )
237+ so , release , err := toSolveOpt (ctx , np .Node (), multiDriver , & localOpt , gatewayOpts , cfg , w , docker )
238238 opts [k ] = localOpt
239239 if err != nil {
240240 return nil , err
241241 }
242- if err := saveLocalState (so , k , opt , np .Node (), configDir ); err != nil {
242+ if err := saveLocalState (so , k , opt , np .Node (), cfg ); err != nil {
243243 return nil , err
244244 }
245245 addGitAttrs (so )
0 commit comments