-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silent Args being passed as a string array cause package failure #808
Comments
Is this something we fix or state that the package should not have done things in a non-compliant way? |
Was it documented anywhere that silentArgs should have been a single string? |
Yes - in all examples and in the old documentation for the last five You can look at the older wiki docs and the history of those wiki pages to On Saturday, June 18, 2016, Jakub Berezanski notifications@github.com
Rob http://codebetter.com/robreynolds |
Ah, indeed, forgot about the wiki for a moment. However, perhaps this is a good time for a small official usability improvement? Changing the parameter to a string[] would be a backward compatible change, I believe, and it would help packages with complex installer argument construction logic (such as Visual Studio) - those packages would be able to accumulate installer arguments in an array and pass it unmodified to the helper. This would also align the helper with existing PowerShell cmdlets which declare an ArgumentList parameter, where arguments are passed as an array (e.g. Invoke-Command, Start-Process, New-Object). |
As long as it is backwards compatible, 👍 |
Some packages have passed silent arguments as an array. Allow specifying it as a string array and then join the arguments together.
* stable: (GH-826) SYSTEM user always uses machine TEMP (GH-808) Allow silent args as array (GH-821) ValidExitCodes not recognized return 0 (GH-818) Allow disk to catch up - sleep (GH-822) Provide pending override and file wait (GH-818) Wait for processes to exit + 2 seconds (maint) formatting (GH-819) Fix - NotSilent install failure binding (GH-775) remove 7za (GH-775) Use 7z instead of 7za
* stable: (maint) match casing for directory override args (version) 0.9.10.3 (GH-808) type is string, not statements update CHANGELOG/nuspec (maint) RemovePendingPackagesTask 2 constructors
First bug to come out of #697. https://chocolatey.org/docs/helpers-install-chocolatey-package#parameters SilentArgs is now strictly a string instead of left up for interpretation. Most items were converted in this way to provide clarity.
https://chocolatey.org/packages/OpenSSL.Light#files - chocolateyInstall.ps1:
Results in:
The text was updated successfully, but these errors were encountered: