Skip to content

Commit

Permalink
VCI-680: Disable dependency solving for the existing manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
krankenbro committed Sep 13, 2023
1 parent e822709 commit 679ef09
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,10 @@ private static bool IsPlatformInstallationNeeded(string version)
.ProceedAfterFailure()
.Executes(async () =>
{
if (!RunningTargets.Contains(Install))
{
SkipDependencySolving = true;
}
var packageManifest = PackageManager.FromFile(PackageManifestPath);
var moduleSources = PackageManager.GetModuleSources(packageManifest).Where(s => s is not GithubReleases).ToList();
var githubReleases = PackageManager.GetGithubModulesSource(packageManifest);
Expand Down Expand Up @@ -486,6 +490,7 @@ private static ManifestModuleInfo LoadModuleInfo(ModuleItem module, ManifestModu
.DependsOn(Backup)
.Executes(async () =>
{
SkipDependencySolving = true;
var manifest = PackageManager.FromFile(PackageManifestPath);

if (Edge)
Expand Down Expand Up @@ -609,13 +614,14 @@ private async Task<ManifestBase> OpenOrCreateManifest(string packageManifestPath
}
else if (!File.Exists(packageManifestPath))
{
Log.Information("vc-package.json is not exists.");
Log.Information("vc-package.json does not exist.");
Log.Information("Looking for the platform release");
var platformRelease = await GithubManager.GetPlatformRelease(GitHubToken, VersionToInstall);
packageManifest = PackageManager.CreatePackageManifest(platformRelease.TagName);
}
else
{
SkipDependencySolving = true;
packageManifest = PackageManager.FromFile(PackageManifestPath);
}
return packageManifest;
Expand Down

0 comments on commit 679ef09

Please sign in to comment.