Class OrphanScanner
java.lang.Object
network.ike.plugin.scaffold.OrphanScanner
Find scaffold lockfile entries the current manifest no longer ships.
When a scaffold strategy is retired its template disappears from
scaffold-manifest.yaml. But a dest a prior
scaffold-publish already wrote stays in
.ike/scaffold.lock and on disk — ScaffoldPlanner
only iterates manifest entries, so an entry with no manifest
counterpart is silently ignored. This scanner flags those orphans
so scaffold-publish can clean them up.
Read-only: like ScaffoldPlanner the scanner reads disk to
decide a OrphanEntry.Disposition but never writes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<OrphanEntry> scan(ScaffoldManifest manifest, ScaffoldLockfile lockfile, ScaffoldScope scope, PathResolver resolver) Scan one scope for orphaned lockfile entries.
-
Method Details
-
scan
public static List<OrphanEntry> scan(ScaffoldManifest manifest, ScaffoldLockfile lockfile, ScaffoldScope scope, PathResolver resolver) Scan one scope for orphaned lockfile entries.- Parameters:
manifest- the current scaffold manifestlockfile- the lockfile for this scope (project or user)scope- the scope being scannedresolver- resolver fordest→ absolute path- Returns:
- orphan entries in lockfile order; empty when none
-