about summary refs log tree commit diff
path: root/tools/nixery/server
diff options
context:
space:
mode:
Diffstat (limited to 'tools/nixery/server')
-rw-r--r--tools/nixery/server/builder/cache.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/nixery/server/builder/cache.go b/tools/nixery/server/builder/cache.go
index 060ed9a84b13..b3b9dffab7d3 100644
--- a/tools/nixery/server/builder/cache.go
+++ b/tools/nixery/server/builder/cache.go
@@ -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
+	}
 }