Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docker-env/scripts/common-packages-list.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ foreach ($key in $dependencyList.Keys) {
Write-Warning "Unable to parse version from packages list. Tried '$($packages[$key])' -match '\w._(.*).zip'"
}
}
elseif ($packages["$key"] -match "") {
Write-Warning "The module $key was not found in the commerceModules list. Adding it to the packages list."
$packages["$key"] = "$($key)_$($dependencyList["$key"]).zip"
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing packageSources on new branch

Low Severity

The new elseif adds a dependency to $packages but never sets $packageSources, unlike the following else block. For keys not already in $packages, -match "" matches the missing entry, so this branch runs instead of else and modules show source unknown in the resolution summary.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ff10c67. Configure here.

else {
$packages["$key"] = "$($key)_$($dependencyList[$key]).zip"
if (-not $packageSources.ContainsKey($key)) { $packageSources["$key"] = "dep:$customModuleId" }
Expand Down