Browse Source

Set UtilizeCache to false on cache miss
Signed-off-by: Anandkumar Patel <anandkumarpatel@gmail.com>

Signed-off-by: AnandkumarPatel <anandkumarpatel@gmail.com>

AnandkumarPatel 10 years ago
parent
commit
1e746a8a2b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      builder/internals.go

+ 2 - 0
builder/internals.go

@@ -512,6 +512,8 @@ func (b *Builder) probeCache() (bool, error) {
 			return true, nil
 		} else {
 			log.Debugf("[BUILDER] Cache miss")
+			// after a miss we no longer need to probe
+			b.UtilizeCache = false
 		}
 	}
 	return false, nil