-
Notifications
You must be signed in to change notification settings - Fork 7
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
VLC installation using Provider Name ChocolateyGet #24
Comments
|
What version of PowerShell are you using? 5.1 and below, or 7.0.1 and above? |
I have the same issue using Install-Package or Find-Package:
PS C:\Windows\system32> $psversiontable Name Value PSVersion 5.1.19041.610 PS C:\Windows\system32> Get-PackageProvider Name Version DynamicOptions ChocolateyGet 3.0.0.0 AdditionalArguments, AcceptLicense PS C:\Windows\system32> Get-PackageSource Name ProviderName IsTrusted Location PSGallery PowerShellGet False https://www.powershellgallery.com/api/v2 |
I am getting this issue on PS version 5.1 but on PS 7.0.2 works fine. |
@ethanbergstrom |
I am seeing the same problem with v2.1.0 on Powershell 5.1.18362.1171 on Windows 10 Pro.
|
I haven't had a chance to look into it yet, but it's odd you're suddenly seeing it even with previous versions of the module. It almost makes me wonder if something changed on the Chocolatey.org side, but I don't want to speculate too much until I've dug into it. |
Closed by mistake |
It looks like there's something changed in the behavior between the Chocolatey API and Chocolatey.org after their maintenance the other night. FYI @ferventcoder. When I invoke ChocolateyGet v2.1.0 under PowerShell 5.1 using the native API using https://chocolatey.org/api/v2/ as the source, it fails, but against a private Artifactory NuGet repo, it works like it always has. If I switch to using the choco.exe command line method ( I'm going to release an emergency cut of v3 module that switches the default behavior under PowerShell 5.1 to use the command line method instead of the native API. If for some reason you're not able to take that update, you'll need to preface your scripts with |
Thanks for the update. Now, it works. |
Thanks for your patience, folks. ChocolateyGet v3.1.1 is now up on PSGallery and in my Windows Sandbox tests once again works correctly against Chocolatey.org's package repository under both PowerShell 5.1 and 7.x. This new version no longer includes a copy of the Chocolatey .NET library, so it's BYOC (Bring Your Own Chocolatey). The provider will ask to install Chocolatey for you if it's not already installed, which you can bypass by passing If for some reason you're not able to take that update (ex: using a version of PowerShell older than 5.1), you'll need to preface your scripts with |
Version 2.1.1 is now out on PowerShell Gallery to correct this issue for anyone who's not able to upgrade to version 3.x. It fills in a generic 'Chocolatey' source name if one's not provided by the repository - 6168877 |
I am facing an issue while installing VLC using the following command:
Install-Module -Name ChocolateyGet -AllowClobber
Install-Package -Name vlc -ProviderName ChocolateyGet -Source chocolatey
Output: "WARNING: Cannot bind argument to parameter 'source' because it is an empty string.
Please guide me so that I can install the VLC media player using chocolatey.
The text was updated successfully, but these errors were encountered: