chef/chef

Upcoming major releases of Chocolatey products that may impact functionality on the Chocolatey cookbook

pauby opened this issue ยท 8 comments

pauby commented

I'm the Technical Engineering Manager at Chocolatey Software, Inc. and I wanted to make sure you are aware that there will be a new major release of Chocolatey products soon. As it is a major release, we are making changes that may have an impact on the Chocolatey cookbook, such as #13368.

We have beta versions of Chocolatey CLI and Chocolatey GUI publicly available that you can test against.

The release notes for the various products are below (some may or may not be applicable to the module, but I wanted to list them all for completeness):

We have no fixed date for release as yet, but it is coming soon.

Apologies for the non-standard issue (I could not find any other way to contact the team). Please let me know if I can help in any way.

pauby commented

The Chocolatey products were released today. Please refer to the above links for the release notes. Here is some more information that may be helpful:

Please let me know if you need any more details.

Can confirm, the chocolatey_package resource fails to converge if Chocolatey 2.0.0 is installed due to changes in how choco list functions.

pauby commented

I would hope that the resource uses --limit-output or -r. In that case, choco list hasn't changed at all and should continue to work as normal. We were very intentional of not breaking this.

Note that I haven't dug into this at all, so this is an uninformed, no context response ๐Ÿ˜„

I stand corrected. Looking at my failed run output more closely it seems you can no longer specify a feed URL for the source, it MUST be a named source. In this case we were providing a URL as a source override.

This is a bit confusing to be honest. If choco list now only works with local packages in 2.x then I don't understand how it's going to continue to support listing remote packages using a --source parameter, or how --limit-output changes this behavior.

pauby commented

To list remote packages, you need to use the choco search command. So choco search --source="'<URL>'".

I've submitted a PR to update the upgrade guide with that information, and it should be merged shortly.

chocolatey_package is defintely looking a little busted when using 2.0.

================================================================================ Error executing actioninstall` on resource 'chocolatey_package[setdefaultbrowser]'
================================================================================

Chef::Exceptions::Package
-------------------------
No candidate version available for setdefaultbrowser`