ProfileLocalCopy class final
Whether a chain member's local copy is on this machine, as WayfinderProfileResolver.status finds it offline: the mirror of its source and its package file at the locked commit, both in the Profile cache.
A locked-only plan contacts location only to clone a mirror that is not there, or to refresh one that lacks the locked commit, which only Git can tell; a plan that read the commit from the mirror left it there, so a mirror is missing the commit only when its source rewrote history. hasPackage is what WayfinderProfileResolver.select reads: with the mirror but without it, as in a cache Wayfinder 0.2 wrote, WayfinderProfileResolver.restoreCachedPackages copies it from the mirror without fetching.
Constructors
- ProfileLocalCopy({required LockedPackage locked, required String location, required bool hasMirror, required bool hasPackage})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasMirror → bool
-
The source's mirror is in the Profile cache.
final
- hasPackage → bool
-
The member's package file at the locked commit is in the Profile cache.
final
- location → String
-
Where Git reaches the member's source,
WayfinderProfileSource.locationOf its
git: the location a ProfileFetch for it names.final - locked → LockedPackage
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited