Skip to content

Commit

Permalink
VCI-769: Add a check if module url does not contain the right version (
Browse files Browse the repository at this point in the history
  • Loading branch information
krankenbro authored Dec 26, 2023
1 parent a849abc commit 80f3246
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/VirtoCommerce.Build/PlatformTools/Build.PackageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,11 @@ private static bool IsPlatformInstallationNeeded(string version)

private static ManifestModuleInfo LoadModuleInfo(ModuleItem module, ManifestModuleInfo externalModule)
{
if (!externalModule.Ref.Contains(externalModule.Version.ToString()))
{
Log.Error("Error in file modules_v3.json for module {0}: Version {1} not found in Reference {2}", externalModule.Id, externalModule.Version.ToString(), externalModule.Ref);
}

var currentModule = new ModuleManifest
{
Id = module.Id,
Expand Down

0 comments on commit 80f3246

Please sign in to comment.