Merge pull request #1293 from jlongtine/engine-scratch-clean-up
Clean up code for `engine.#Scratch`
This commit is contained in:
commit
2531d17ea6
@ -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