Skip to content

Commit

Permalink
fix: dependencies which can not be resolved are still added
Browse files Browse the repository at this point in the history
  • Loading branch information
iadonkey authored Dec 10, 2024
1 parent 82277cc commit dc66d0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TwinpackCore/Core/TwinpackService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,8 @@ private async Task<List<PackageItem>> AffectedPackagesAsync(List<PackageItem> pa
{
if (package.Package == null || package.PackageVersion == null || package.PackageServer == null)
{
package.PackageVersion = null;
package.PackageServer = null;
var resolvedPackage = await _packageServers.FetchPackageAsync(package.PackageServer, package.ProjectName, package.PlcName, package.Config, includeMetadata: true, _automationInterface, cancellationToken);
package.Package ??= resolvedPackage.Package;
package.PackageVersion ??= resolvedPackage.PackageVersion;
Expand Down

0 comments on commit dc66d0e

Please sign in to comment.