- 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:
parent
47bed011e8
commit
d1fb5bc157
@ -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()
|
||||
}
|
||||
|
@ -54,7 +54,6 @@ package engine
|
||||
|
||||
// Produce an empty directory
|
||||
#Scratch: {
|
||||
@dagger(notimplemented)
|
||||
$dagger: task: _name: "Scratch"
|
||||
|
||||
output: #FS
|
||||
|
Reference in New Issue
Block a user