From c425f028660bcb75b0e207cf13bc6cafd22c7a4b Mon Sep 17 00:00:00 2001 From: Deniz Zoeteman Date: Fri, 16 Aug 2019 15:09:52 +0200 Subject: [PATCH] Reverted not including build args in cache key --- pkg/executor/build.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/executor/build.go b/pkg/executor/build.go index 6626577cf..13f9db92d 100644 --- a/pkg/executor/build.go +++ b/pkg/executor/build.go @@ -191,6 +191,7 @@ func (s *stageBuilder) optimize(compositeKey CompositeCache, cfg v1.Config) erro func (s *stageBuilder) build() error { // Set the initial cache key to be the base image digest, the build args and the SrcContext. compositeKey := NewCompositeCache(s.baseImageDigest) + compositeKey.AddKey(s.opts.BuildArgs...) // Apply optimizations to the instructions. if err := s.optimize(*compositeKey, s.cf.Config); err != nil {