fix(server): Ensure build cache objects are written to GCS
Cache writes might not be flushed without this call.
This commit is contained in:
parent
48a5ecda97
commit
9bb6d0ae25
1 changed files with 5 additions and 0 deletions
|
@ -213,4 +213,9 @@ func cacheLayer(ctx context.Context, s *State, key string, entry manifest.Entry)
|
||||||
log.Printf("failed to cache build '%s': %s\n", key, err)
|
log.Printf("failed to cache build '%s': %s\n", key, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err = w.Close(); err != nil {
|
||||||
|
log.Printf("failed to cache build '%s': %s\n", key, err)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue