fix(server): Ensure build cache objects are written to GCS

Cache writes might not be flushed without this call.
This commit is contained in:
Vincent Ambo 2019-10-03 22:13:13 +01:00 committed by Vincent Ambo
parent 48a5ecda97
commit 9bb6d0ae25

View file

@ -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)
return
}
if err = w.Close(); err != nil {
log.Printf("failed to cache build '%s': %s\n", key, err)
return
}
}