There is a drift in the way chocolatey manages installs between 1.x and 2.x that has not been reconciled yet on chef for their chocolatey_package resource. See issue https://github.com/chef/chef/issues/13751.
To fix the windows builds the chocolatey version is pinned to the latest one from the 1.x version, until this drift is resolved and our setup can be bumped to chef 18.
[2023-07-13T04:39:05+00:00] FATAL: Chef::Exceptions::Package: chocolatey_package[curl] (ros2_windows::chocolatey_installs line 2) had an error: Chef::Exceptions::Package: No candidate version available for curl
Description
There is a drift in the way chocolatey manages installs between 1.x and 2.x that has not been reconciled yet on chef for their
chocolatey_package
resource. See issue https://github.com/chef/chef/issues/13751. To fix the windows builds the chocolatey version is pinned to the latest one from the 1.x version, until this drift is resolved and our setup can be bumped to chef 18.Testing
Error due to mismatch
Reference build : https://ci.ros2.org/view/nightly/job/nightly_win_rel/2739/console
With fix
Reference build: https://ci.ros2.org/job/test_ci_windows/324/console