diff --git a/plancontext/fs.go b/plancontext/fs.go index 72cca3ac..a8f4009f 100644 --- a/plancontext/fs.go +++ b/plancontext/fs.go @@ -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() } diff --git a/stdlib/europa/dagger/engine/fs.cue b/stdlib/europa/dagger/engine/fs.cue index 215d4cbe..5bd8c93c 100644 --- a/stdlib/europa/dagger/engine/fs.cue +++ b/stdlib/europa/dagger/engine/fs.cue @@ -54,7 +54,6 @@ package engine // Produce an empty directory #Scratch: { - @dagger(notimplemented) $dagger: task: _name: "Scratch" output: #FS