From f4c712e373c0a292dfa19732ac63a4131a2bf220 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Thu, 15 Apr 2021 12:09:01 -0700 Subject: [PATCH] pipeline: implemented op.#Exec.always correctly Signed-off-by: Sam Alba --- dagger/pipeline.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dagger/pipeline.go b/dagger/pipeline.go index 7cddcfd0..e90b7f6d 100644 --- a/dagger/pipeline.go +++ b/dagger/pipeline.go @@ -385,13 +385,8 @@ func (p *Pipeline) Exec(ctx context.Context, op *compiler.Value, st llb.State) ( } // always? - // FIXME: initialize once for an entire compute job, to avoid cache misses if cmd.Always { - cacheBuster, err := randomID(8) - if err != nil { - return st, err - } - opts = append(opts, llb.AddEnv("DAGGER_CACHEBUSTER", cacheBuster)) + opts = append(opts, llb.IgnoreCache) } // mounts if mounts := op.Lookup("mount"); mounts.Exists() {