solver: fix early resolution of cache-fast deps
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>docker-18.09
parent
66fcbd1258
commit
a711fbb8f3
|
@ -271,7 +271,7 @@ func (e *edge) currentIndexKey() *CacheKey {
|
||||||
func (e *edge) skipPhase2SlowCache(dep *dep) bool {
|
func (e *edge) skipPhase2SlowCache(dep *dep) bool {
|
||||||
isPhase1 := false
|
isPhase1 := false
|
||||||
for _, dep := range e.deps {
|
for _, dep := range e.deps {
|
||||||
if !dep.slowCacheComplete && e.slowCacheFunc(dep) != nil && len(dep.keyMap) == 0 {
|
if (!dep.slowCacheComplete && e.slowCacheFunc(dep) != nil || dep.state < edgeStatusCacheSlow) && len(dep.keyMap) == 0 {
|
||||||
isPhase1 = true
|
isPhase1 = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue