Skip to content
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

Get-Package lists chocolatey twice #12

Closed
ethanbergstrom opened this issue Feb 3, 2019 · 0 comments · Fixed by #15
Closed

Get-Package lists chocolatey twice #12

ethanbergstrom opened this issue Feb 3, 2019 · 0 comments · Fixed by #15
Labels

Comments

@ethanbergstrom
Copy link
Collaborator

ethanbergstrom commented Feb 3, 2019

PS C:\> get-package -ProviderName chocolateyget

Name                           Version          Source                           ProviderName
----                           -------          ------                           ------------
Chocolatey                     v0.10.8          https://www.chocolatey.org       ChocolateyGet
chocolatey                     0.10.8           https://www.chocolatey.org       ChocolateyGet
chocolatey-core.extension      1.3.3            https://www.chocolatey.org       ChocolateyGet
pip                            1.2.0            https://www.chocolatey.org       ChocolateyGet
python                         3.6.4.20180116   https://www.chocolatey.org       ChocolateyGet
python3                        3.6.4.20180116   https://www.chocolatey.org       ChocolateyGet

Should be able to fix by passing the -r flag to choco in Get-InstalledPackages and changing the regex. Example fix based on current version of package: ethanbergstrom/ChocolateyGet@c7a490e

PS C:\> get-package -ProviderName chocolateyget

Name                           Version          Source                           ProviderName
----                           -------          ------                           ------------
chocolatey                     0.10.8           https://www.chocolatey.org       ChocolateyGet
chocolatey-core.extension      1.3.3            https://www.chocolatey.org       ChocolateyGet
pip                            1.2.0            https://www.chocolatey.org       ChocolateyGet
python                         3.6.4.20180116   https://www.chocolatey.org       ChocolateyGet
python3                        3.6.4.20180116   https://www.chocolatey.org       ChocolateyGet

Will hold on PR until after after the multi-source PR is resolved. Fixed in #15

@ethanbergstrom ethanbergstrom changed the title Get-Packages lists chocolatey twice Get-Package lists chocolatey twice Feb 3, 2019
@ethanbergstrom ethanbergstrom mentioned this issue Nov 16, 2019
ethanbergstrom added a commit to ethanbergstrom/ChocolateyGet that referenced this issue Jan 2, 2020
Various fixes found in testing
@ethanbergstrom ethanbergstrom linked a pull request Oct 6, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant