You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
My debugging attempts tracked the issue down to this line in New-NugetPackage:
$processStartInfo.Arguments=$ArgumentList
This casts an array ($ArgumentList) to a string, assuming that it will be joined with spaces. This is only true if $OFS is set to " ", which, while currently the default, is not guaranteed.
This bug exists in other functions called during the publishing process, but New-NugetPackage is the first one to trigger it.
Proposed solution
One of:
Explicitly join the array with spaces using -join.
Don't generate an array at all, and directly set $processStartInfo.Arguments to a string with appropriate interpolations.
The text was updated successfully, but these errors were encountered:
@alexbuzzbee thanks for reporting this bug, and taking the time to do some de-bugging...both of your proposed solutions seem valid, although we are undertaking a major re-work of PowerShellGet right now so I cannot promise we will have bandwidth to address this in the near future (although we do accept PRs 😄 )...thanks!
Steps to reproduce
Expected behavior
Module published.
Actual behavior
Environment data
Additional information
My debugging attempts tracked the issue down to this line in
New-NugetPackage
:This casts an array (
$ArgumentList
) to a string, assuming that it will be joined with spaces. This is only true if$OFS
is set to" "
, which, while currently the default, is not guaranteed.This bug exists in other functions called during the publishing process, but
New-NugetPackage
is the first one to trigger it.Proposed solution
One of:
-join
.$processStartInfo.Arguments
to a string with appropriate interpolations.The text was updated successfully, but these errors were encountered: