-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Labels
bugSomething isn't workingSomething isn't workingneeds-triageRequires triage and prioritizationRequires triage and prioritization
Description
Issue Description
The extension packaging workflow fails when ChangelogPath is provided. The error occurs because the workflow uses array splatting (@()) for named parameters, but PowerShell requires hashtable splatting (@{}) for named parameter binding.
Error:
Package-Extension.ps1: A positional parameter cannot be found that accepts argument './CHANGELOG.md'.
Root Cause:
In .github/workflows/extension-package.yml, the Package extension step builds an array of arguments:
$arguments = @()
$arguments += '-ChangelogPath'
$arguments += "./CHANGELOG.md"
./scripts/extension/Package-Extension.ps1 @argumentsArray splatting passes values as positional parameters. Hashtable splatting is required for named parameters:
$arguments = @{}
$arguments['ChangelogPath'] = "./CHANGELOG.md"
./scripts/extension/Package-Extension.ps1 @argumentsAdditional Context
This was discovered during CI validation after merging PR #161 (release management implementation). The fix is straightforward - convert the array to a hashtable in the workflow step.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds-triageRequires triage and prioritizationRequires triage and prioritization