-
Notifications
You must be signed in to change notification settings - Fork 161
Improper parsing of Chocolatey parameters #405
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
Comments
this is somehow related to #265 - Boxstarter definitely needs some work on it's command parsing, as it simply tries to install an array of packages after a note, this should only applies to "Boxstarter packages", not when using BoxstarterShell. |
note that #404 does NOT resolve this bug. |
@mwallner You happy to take this one on? |
In theory
.. relates to #145 |
Oh, the code in https://github.com/chocolatey/boxstarter/blob/master/Boxstarter.Chocolatey/Chocolatey.ps1#L301 only checks for |
I've just written a couple of tests and verified: there definitely is a bug in choco command parsing that leads to argument reordering before those args are passed to choco.exe. i.e.:
I've added a couple of Debug-print statements to
which gives me
that finally leads to
being passed to choco.exe. After all, |
Build is failing in AppVeyor. Once that is resolved we can get to merging this. Awesome work @mwallner. Thanks for picking this up and completing it! |
* GH-405: fix package parameter handling * fix bad package parameter handling * objects are objects, not strings * GH-405: fix missing named params * ditch .metals vscode folder * ignore .metals vscode folder * .gitignore should have newline at end of file * GH-405: Get-PackageNamesFromInvocationLine fix * GH-405: fix edge case Get-PackageNamesFromInvocationLine
* 'master' of https://github.com/HolisticDeveloper/boxstarter: (58 commits) Update chocolatey uninstall url Fix chocolatey links (chocolateyGH-446) Updates documentation with important info (chocolateyGH-443) Adds Windows Explorer item check box view Even though Boxstarter has existing functionality to modify Windows Explorer's settings, the existing functionality did not allow for user's to configure the "Use check boxes to select items" setting. This commit adds that functionality to the existing set-windowsexploreroptions function. (chocolateyGH-451) more accurate regex (chocolateyGH-451) StopOnPackageFailiure not stripped without RebootCodes (release v2.13.0) Updated version numbers chocolateyGH-444 do not pass StopOnPackageFailure to choco Merge pull request from GHSA-rpgx-h675-r3jf (chocolateyGH-405) Fix package parameter handling (chocolatey#412) (chocolateyGH-434) Fix disabling bing search for Win release 2004+ (chocolatey#438) chocolateygh-435 docs for DelegateChocoSources (build) Replace direct usage of cinst (build) Pin all packages to specific version (build) Remove deprecated package (build) Make project files consistent (build) Pin to specific version of nuget.commandline (build) Remove VS import for web targets (build) Trying to fix AppVeyor build (doc) Update template ...
What You Are Seeing?
Failure to parse Chocolatey parameter
What is Expected?
Correctly parsing Chocolatey parameter
How Did You Get This To Happen? (Steps to Reproduce)
boxstarter script.ps1
where script.ps1 only contains
choco install -y cmake --installargs "ADD_CMAKE_TO_PATH=System"
However,
choco install -y cmake --installargs="ADD_CMAKE_TO_PATH=System"
works fine, which makes me think it's simply a parsing issue.Output Log
Full Log Output
The text was updated successfully, but these errors were encountered: