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 1da6682373
commit a96731ebf5

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) 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
}
} }