-
Notifications
You must be signed in to change notification settings - Fork 395
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
adding parameters for choco packages causes error #88
Comments
@ASafwatAli can you provide the log for what you are seeing? Nothing should have changed from a Chocolatey stand point with regard to the options that you can pass to the install command. |
Sure I’ll add the logs shortly. I can submit a PR with the fixes that worked for me. |
@gep13 I've extracted some of the logs, but they're pretty big and contain personal information. I've also created a one click link with the mentioned 4 commands to test it out `
chocolatey-core.extension v1.3.5.1 [Approved] chocolatey v0.10.15 [Approved] git.install v2.27.0 [Approved] git v2.27.0 [Approved] Chocolatey installed 2/4 packages. 2 packages failed. Failures
ErrorRecord : Exception calling "Run" with "1" argument(s): "Second path fragment must not be a drive or UNC name. Boxstarter: Error from Chocolatey: ErrorRecord : Exception calling "Run" with "1" argument(s): "Second path fragment must not be a drive or UNC name. |
The following commands cause errors due to being obsolete:
choco install -y git --package-parameters="'/GitAndUnixToolsOnPath /WindowsTerminal'"
choco install -y Microsoft-Hyper-V-All --source="'windowsFeatures'"
choco install -y visualstudio2017community --package-parameters="'--add Microsoft.VisualStudio.Component.Git'"
choco install -y Microsoft-Windows-Subsystem-Linux --source="'windowsfeatures'"
After checking chocolatey, I believe they changed how to reference params. Hence, I suggest updating those scripts and similar to the following
choco install -y git --params "/GitAndUnixToolsOnPath /WindowsTerminal"
choco install -y -source windowsfeatures Microsoft-Hyper-V-All
choco install -y visualstudio2017community --params="--add Microsoft.VisualStudio.Component.Git"
choco install -y -source windowsfeatures Microsoft-Windows-Subsystem-Linux
The text was updated successfully, but these errors were encountered: