Merge pull request #1323 from jlongtine/result-instead-of-state
We need to use the State() function, rather than Result().ToState()
This commit is contained in:
commit
7f944eaee7
@ -217,7 +217,7 @@ func (p *Pipeline) doOp(ctx context.Context, op *compiler.Value, st llb.State) (
|
||||
if err != nil {
|
||||
return st, nil
|
||||
}
|
||||
return fs.Result().ToState()
|
||||
return fs.State()
|
||||
}
|
||||
|
||||
do, err := op.Lookup("do").String()
|
||||
|
@ -60,7 +60,7 @@ func (t *buildTask) dockerfile(ctx context.Context, pctx *plancontext.Context, s
|
||||
return nil, err
|
||||
}
|
||||
|
||||
sourceSt, err := source.Result().ToState()
|
||||
sourceSt, err := source.State()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ func (t *mkdirTask) Run(ctx context.Context, pctx *plancontext.Context, s solver
|
||||
}
|
||||
|
||||
// Retrieve input llb state
|
||||
inputState, err := input.Result().ToState()
|
||||
inputState, err := input.State()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ func (c outputDirectoryTask) Run(ctx context.Context, pctx *plancontext.Context,
|
||||
return nil, err
|
||||
}
|
||||
|
||||
st, err := contents.Result().ToState()
|
||||
st, err := contents.State()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ func (c *pushTask) Run(ctx context.Context, pctx *plancontext.Context, s solver.
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
st, err := input.Result().ToState()
|
||||
st, err := input.State()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user