-
Notifications
You must be signed in to change notification settings - Fork 33
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
Error resolving backup dependency. #32
Comments
yes as you can see in https://github.com/ramonskie/bamboo/blob/master/Berksfile#L5 |
The problem is that when you try to resolve this cookbook using Berkshelf, it fails because the Try this sample Berksfile
It will fail to resolve. It will succeed if you add:
But this causes another problem. If any other cookbook in your Berksfile uses the Is there a reason we cant just use the |
@ramonskie If you already realize this, please forgive my explanation, but it seems like the breakage may not be clear: Currently the
This is extremely difficult to diagnose particularly because there is in fact already a cookbook named A cookbook published to Supermarket ( |
@damm i really don't know why so many ppl have issues with it using berks to upload cookbooks.
or something like that |
@aogail can you make sure you're using the Berksfile for this cookbook and not setting your own or something? It would appear you're using an outdated or customized Berksfile which is what would be causing the Berks is a normal part of the Chef ecosystem and resolving dependencies through a Berksfile setting is perfectly acceptable. Not all Chef cookbooks have a supermarket presence for various reasons and I personally don't think it makes sense to limit oneself to just supermarket cookbooks. |
The Berksfile for this cookbook works fine. The problem is when you try to use the cookbook in another Berksfile. There are a couple of problems:
We tried to get a conversation going with @damm to fix the underlying problem of the backup cookbook having a name collision. For better or for worse, he doesn't seem interested in changing the name to make it easier for people to use. See these issues for background: https://github.com/damm/backup/issues/31 |
I think there are a couple of simple solutions to this problem:
or
Both of these accomplish the goal of not breaking dependency resolution and not causing conflicts with other cookbooks. |
@mvdkleijn I was in the middle of typing something similar to what @rylarson just wrote, then saw his note. I will just add that according to Berkshelf devs, using SCM and path locations in the Berksfile is for development convenience and is not recommended for use in published cookbooks. See berkshelf/berkshelf#1408 for example. |
@ramonskie As you know I have the I have no real preference whatever works best for you. |
metadata.rb specifies backup v0.2.1 but that version isn't available.
https://supermarket.chef.io/cookbooks/backup#changelog
Am I missing anything?
The text was updated successfully, but these errors were encountered: