From d1fb5bc157cbdbc149ac1ca14e8f639ffed5ea6d Mon Sep 17 00:00:00 2001 From: Joel Longtine Date: Wed, 22 Dec 2021 14:42:10 -0700 Subject: [PATCH] - Clean up plancontext/fs.go code - remove `@dagger(notimplemented)` from `engine.#Scratch` Signed-off-by: Joel Longtine --- plancontext/fs.go | 6 +----- stdlib/europa/dagger/engine/fs.cue | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) 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