- Clean up plancontext/fs.go code

- remove `@dagger(notimplemented)` from `engine.#Scratch`

Signed-off-by: Joel Longtine <joel@dagger.io>
This commit is contained in:
Joel Longtine 2021-12-22 14:42:10 -07:00
parent 47bed011e8
commit d1fb5bc157
2 changed files with 1 additions and 6 deletions

View File

@ -33,13 +33,9 @@ func (fs *FS) Result() bkgw.Reference {
return fs.result
}
// func (fs *FS) FS() *solver.BuildkitFS {
// return solver.NewBuildkitFS(fs.result)
// }
func (fs *FS) State() (llb.State, error) {
if fs.Result() == nil {
return llb.State{}, nil
return llb.Scratch(), nil
}
return fs.Result().ToState()
}

View File

@ -54,7 +54,6 @@ package engine
// Produce an empty directory
#Scratch: {
@dagger(notimplemented)
$dagger: task: _name: "Scratch"
output: #FS