Skip to content

Commit 2caf173

Browse files
authored
Merge pull request #109 from hinshun/replace-bugfix
Fix frontend builtin and exiting when progress returns error
2 parents b7af7d9 + 43381ea commit 2caf173

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/hlb/command/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func Run(ctx context.Context, cln *client.Client, rc io.ReadCloser, opts RunOpti
168168
return err
169169
}
170170

171-
if opts.Debug {
171+
if solveReq == nil || opts.Debug {
172172
return nil
173173
}
174174
}

codegen/chain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ func (cg *CodeGen) EmitFilesystemBuiltinChainStmt(ctx context.Context, scope *pa
203203
return llb.Local(id, opts...), nil
204204
}
205205
case "frontend":
206-
fcurce, err := cg.EmitStringExpr(ctx, scope, args[0])
206+
source, err := cg.EmitStringExpr(ctx, scope, args[0])
207207
if err != nil {
208208
return fc, err
209209
}
@@ -235,7 +235,7 @@ func (cg *CodeGen) EmitFilesystemBuiltinChainStmt(ctx context.Context, scope *pa
235235
req := gateway.SolveRequest{
236236
Frontend: "gateway.v0",
237237
FrontendOpt: map[string]string{
238-
"fcurce": fcurce,
238+
"source": source,
239239
},
240240
FrontendInputs: make(map[string]*pb.Definition),
241241
}

0 commit comments

Comments
 (0)