-
Notifications
You must be signed in to change notification settings - Fork 137
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
Chocolatey fails to install in PowerShell v2 with PowerShell Module 1.x #128
Comments
Should note this only started since the chocolatey module went from 1.2.3 to 1.2.4 |
And Puppet version is? :) |
The only place in the code that looks like this is : https://github.com/chocolatey/puppet-chocolatey/blob/461a0aa0ffca2fb4431c559ad1468d23a0687061/templates/InstallChocolatey.ps1.erb#L105 |
side note: I also recommend upgrading your beta. |
It seems the try/catch is likely causing this error later. Perhaps if you can help me adjust that - we can try to determine what is causing it - I tested this scenario with the older PowerShell provider on Windows 2008 R2 and didn't see this issue, so I missed getting this to happen. |
Let's try changing that line to |
Puppet version is 3.8.4 I've made the change, running a build now to see what happens. |
That seems to have done the trick :) |
ugh, fun times - let's fix that. |
Do you want to follow up with a pull request or do you just want me to fix it? |
…allation issues with older versuions of the powershell module.
Removed a line break which was causing installation issues with 1.x versions of the PowerShell provider module. Older versions of PowerShell, such as PowerShell v2, and the 1.x module do not handle line breaks with else statements very well.
* pr129: (GH-128) PowerShell 1.x provider fixes for "else"
* master: (version) 1.2.5 (maint) prep for release of 1.2.5 (chocolatey-archiveGH-128) PowerShell 1.x provider fixes for "else" (chocolatey-archiveGH-133) Feature list update for 0.9.10 (version) 1.2.4 (chocolatey-archiveGH-125) Compatible Up to PowerShell Provider 3.x (chocolatey-archiveGH-125) Wrap PowerShell Redirect in Try/Catch (chocolatey-archiveGH-69) Fix - default provider example (doc) make that text a bit more prominent (version) 1.2.3 for real (version) 1.2.3 (doc) add editions of Chocolatey (chocolatey-archiveGH-100) Do not call choco with --debug --verbose (version) 1.2.2 Sign the installer script template (chocolatey-archiveGH-119) Implement PowerShell Redirection Fix
* master: (version) 1.2.6 (MODULES-3536) modsync update (maint) Remove travis and metadata-json-lint gems (chocolatey-archiveGH-134) Only Enable AutoUninstaller in 0.9.9.x (version) 1.2.5 (maint) prep for release of 1.2.5 (chocolatey-archiveGH-128) PowerShell 1.x provider fixes for "else" (chocolatey-archiveGH-133) Feature list update for 0.9.10 (version) 1.2.4 (chocolatey-archiveGH-125) Compatible Up to PowerShell Provider 3.x (chocolatey-archiveGH-125) Wrap PowerShell Redirect in Try/Catch (chocolatey-archiveGH-69) Fix - default provider example (doc) make that text a bit more prominent (version) 1.2.3 for real (version) 1.2.3 (doc) add editions of Chocolatey (chocolatey-archiveGH-100) Do not call choco with --debug --verbose (version) 1.2.2 Sign the installer script template (chocolatey-archiveGH-119) Implement PowerShell Redirection Fix
Powershell plug in is 1.06
Chocolatey plug in is 1.2.4
Chocolatey package is 0.9.10-beta-2016032
The main choco install is failing as below. we are using the beta 9.10 package installed from a private repo.
The text was updated successfully, but these errors were encountered: