There was an error while loading. Please reload this page.
1 parent 4ce8a11 commit 33c49e5Copy full SHA for 33c49e5
1 file changed
Sources/tart/Commands/Prune.swift
@@ -72,6 +72,12 @@ struct Prune: AsyncParsableCommand {
72
if let spaceBudget = spaceBudget {
73
try Prune.pruneSpaceBudget(prunableStorages: prunableStorages, spaceBudgetBytes: UInt64(spaceBudget) * 1024 * 1024 * 1024)
74
}
75
+
76
+ // Pruning digest-addressed OCI images can leave their tag symlinks broken.
77
+ // Run garbage collection after deletion so it can remove those links.
78
+ if entries == "caches" && (olderThan != nil || spaceBudget != nil) {
79
+ try VMStorageOCI().gc()
80
+ }
81
82
83
static func pruneOlderThan(prunableStorages: [PrunableStorage], olderThanDate: Date) throws {
0 commit comments