We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e2d7b3d + 68b8961 commit 59dad38Copy full SHA for 59dad38
pkg/runtime/depot.go
@@ -422,6 +422,12 @@ func (d *depot) Save() error {
422
// Mark artifacts that are no longer used and remove the old ones.
423
for id := range d.artifacts {
424
if deployments, ok := d.config.Deployments[id]; !ok || len(deployments) == 0 {
425
+ if _, exists := d.config.Cache[id]; !exists {
426
+ err := d.recordUse(id)
427
+ if err != nil {
428
+ return errs.Wrap(err, "Could not update depot cache with previously used artifact")
429
+ }
430
431
d.config.Cache[id].InUse = false
432
logging.Debug("Artifact '%s' is no longer in use", id.String())
433
}
0 commit comments