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

recommends in metadata causes circular dependency #9

Open
jcii opened this issue Mar 7, 2017 · 1 comment
Open

recommends in metadata causes circular dependency #9

jcii opened this issue Mar 7, 2017 · 1 comment

Comments

@jcii
Copy link

jcii commented Mar 7, 2017

Hello,

We're seeing inconsistent behavior in our CI pipeline when we use your multipath cookbook. The metadata.rb for multipath recommends iscsi, and iscsi requires multipath.
https://github.com/ovaistariq/cookbook-multipath/blob/master/metadata.rb#L7

The inconsistency is that with this change to Berksfile:
berkshelf/berkshelf#1362

iscsi is included IF it's cached. A cookbook for our kvm server passes on our chef CI server until an outside action causes iscsi to end up in our CI server's cache. Then it starts breaking with a circular dependency error.

$ berks install
Resolving cookbook dependencies...
Fetching 'hostclass_kvm_server' from source at .
Fetching cookbook index from https://supermarket.chef.io...
There is a circular dependency between iscsi and multipath
Unable to find a solution for demands: apt (5.0.1), auditd (0.2.0), build-essential (8.0.0), chef-client (4.6.0), chef-sugar (3.4.0), chef_hostname (0.4.2), compat_resource (12.16.3)...

We could fork the cookbook, but before doing that, what do you think about removing recommends from the metadata.rb file?

Thanks

@lamont-granquist
Copy link

Chef RFC that officially drops support of recommends: https://github.com/chef/chef-rfc/blob/master/rfc085-remove-unused-metadata.md

It has also been removed from the chef-client codebase and will be removed from the berkshelf codebase soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants