Allow for nil buildkit References

Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
Joel Longtine
2021-12-21 10:42:05 -07:00
parent 75d5ab8f01
commit a90ff8ab94
6 changed files with 20 additions and 15 deletions

View File

@@ -26,7 +26,7 @@ func (t execTask) Run(ctx context.Context, pctx *plancontext.Context, s solver.S
if err != nil {
return nil, err
}
st, err := input.Result().ToState()
st, err := input.State()
if err != nil {
return nil, err
}
@@ -246,7 +246,7 @@ func (t *execTask) mountFS(pctx *plancontext.Context, dest string, mnt *compiler
}
}
st, err := contents.Result().ToState()
st, err := contents.State()
if err != nil {
return nil, err
}