resolve method
Future<ProfileResolutionResult>
resolve(
- String project, {
- bool upgrade = false,
- ProfileFetchPolicy? allowFetch,
- WayfinderCancellation? cancel,
wayfinder get and upgrade: plan then apply under one hold of
the project's get lock. Converges: with the same configuration, lock
and cache it fetches nothing and writes nothing in the project.
Implementation
Future<ProfileResolutionResult> resolve(
String project, {
bool upgrade = false,
ProfileFetchPolicy? allowFetch,
WayfinderCancellation? cancel,
}) async {
final (:projectRoot, :configFile) = await _locate(project);
return _withProjectLock(
projectRoot,
() async => _apply(
await _planFile(
projectRoot,
configFile,
upgrade: upgrade,
allowFetch: allowFetch,
cancel: cancel,
),
),
);
}