-
Notifications
You must be signed in to change notification settings - Fork 100
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
Implementation of Get-ChocoInstalledPackage fails when using Chocolatey as a package #87
Comments
|
Is this a gating issue for you currently? |
Not currently, we've forked the hell out of this resource I won't lie. I've fixed our implementation just being a good citizen. |
@lukemgriffith 👍 If it's allowed, we'd love to get some of those fixes into here... |
submitted PR for this. #88 |
The old implementation caused promotional message, and chocolatey banner to get mixed into the works. If upgrading Chocolatey, cause problems as the version caught is a string with "vX.X.X" and in the where clause is attempted to be converted to a .NET version type. Limiting the output reduces it to only the packages, leaving out any banners.
* pr88: (chocolateyGH-87) Moved to using reduced output
* development: (GH-71) Implemented cChocoFeature (GH-87) Moved to using reduced output (maint) formatting (GH-70) Apply Apache v2 Licensing (GH-85) Pass the source to cChocoPackageInstallerSet correctly (GH-44) Pass the Source to choco correctly Added version to example (GH-77) Push to gallery on new tags (maint) formatting (GH-72) PowerShell scripts in format for signing
…ages_for_faster_run * development: (chocolateyGH-87) Moved to using reduced output (maint) formatting (chocolateyGH-70) Apply Apache v2 Licensing (chocolateyGH-85) Pass the source to cChocoPackageInstallerSet correctly (chocolateyGH-44) Pass the Source to choco correctly Added version to example (chocolateyGH-77) Push to gallery on new tags (maint) formatting (chocolateyGH-72) PowerShell scripts in format for signing # Conflicts: # DSCResources/cChocoPackageInstall/cChocoPackageInstall.psm1
The current used implementation considers the choco version banner to be a package, and returns with a version "vX.X.X", if chocolatey is installed via the choco package the list has duplicates, and the presence of the string v causes the where clause, converting the string to a version to fail.
Moving to using the -r argument, and converting from a CSV will resolve these problems, only consideration is how backwards compatible is -r?
Potential simpler implementation.
The text was updated successfully, but these errors were encountered: