You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dd-handler recipe has to require chef/handler/datadog because some versions of the chef_handler cookbook need this require statement to work properly.
Obviously using the require doesn't work when the chef-handler-datadog gem hasn't actually been installed by the chef_gem resource that precedes the require. So dd-handler doesn't work for chefspec runs and for chef runs that use the why-run mode (see related issue #118).
The only thing I can think of to fix your issue properly on our end would be to remove this require and change the version constraint on the chef_handler dep to a version that can load the handler on its own. This would require quite some testing on the cookbook to determine which version of chef_handler works well, I'll try to spend some time on this for the next minor release.
In the short term I don't think there's a way to fix this other than what you did (i.e. installing the gem locally). Let me know what you think, thanks!
I’m using
datadog
v2.5.0.I have a cookbook, with a recipe that:
However, this is the output I get:
If I
chef gem install chef-handler-datadog
, things work properly, but that feels a bit janky.The text was updated successfully, but these errors were encountered: