cache:orphans
Introduction
cache:orphans lists the cache entries no product references, the ones cache:prune would delete. It only reads.
splent cache:orphans
🗑 Orphaned cache entries (3):
- splent_io/splent_feature_notes@v1.0.0
- splent_io/splent_feature_cache@v1.0.0
- splent_io/splent_feature_reports@v1.0.0
With no orphans it prints ✅ No orphaned features in cache.
What counts as referenced
It reads features, features_dev and features_prod from the pyproject.toml of every product in the workspace. A product whose pyproject.toml cannot be parsed is skipped.
An entry is referenced only when its namespace, name and version all match a declaration. A snapshot such as splent_feature_notes@v1.2.7 matches a pin, and an entry without a version matches an editable declaration.
A declaration without a namespace belongs to splent_io, and splent-io and splent_io are the same namespace. So a fork at alice/splent_feature_notes@v1.2.7 is an orphan when products only pin splent-io/splent_feature_notes@v1.2.7.