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

Add source_url and issues_url, update CONTRIBUTING #122

Closed
iennae opened this issue Apr 3, 2015 · 5 comments
Closed

Add source_url and issues_url, update CONTRIBUTING #122

iennae opened this issue Apr 3, 2015 · 5 comments

Comments

@iennae
Copy link
Contributor

iennae commented Apr 3, 2015

Source URL Issues URL allow for supermarket to automatically show the "show issues and show source" when looking around at cookbooks. Without these in the metadata, these have to be handcrafted.

Expected format
source_url ""
issues_url ""

Contributing has some issues referring to retired wiki.

@ajohnstone
Copy link

This now causes a problem with amazon opsworks.

Fetching 'ark' from git@github.com:opscode-cookbooks/ark.git (at master)
Fetching 'aws' from git@github.com:opscode-cookbooks/aws.git (at master)
STDERR: Ridley::Errors::FromFileParserError Could not parse `/tmp/d20150408-4505-1uchrp6/metadata.rb': undefined method `source_url' for #<Ridley::Chef::Cookbook::Metadata:0x007f86d0728090>
---- End output of /opt/aws/opsworks/local/bin/berks vendor /opt/aws/opsworks/current/berkshelf-cookbooks ----
Ran /opt/aws/opsworks/local/bin/berks vendor /opt/aws/opsworks/current/berkshelf-cookbooks returned 47

@tas50
Copy link
Contributor

tas50 commented Jan 19, 2016

This should be fixed by the responds_to use.

@tas50 tas50 closed this as completed Jan 19, 2016
@jpooler
Copy link

jpooler commented Aug 4, 2016

I'm getting this error using Chef 11.10 and Berkshelf 3.2.0 in AWS Opsworks.

I noticed ohai doesn't have the responds_to lines, which I assume means it's not backwards compatible. I tried removing it and got a compat_resource error, which indicated chef12 only.

Help?

@tas50
Copy link
Contributor

tas50 commented Aug 4, 2016

The Ohai dependency is for the ohai cookbook not a new bit of metadata. If you're using Chef 11 though you will need to pin the version of the ohai cookbook elsewhere as that cookbook is Chef 12 only and will cause your runs to fail. I'd highly recommend updating to the latest Opsworks with Chef 12. It resolves a lot of issues and provides loads of new functionality.

@jpooler
Copy link

jpooler commented Aug 4, 2016

Thanks for the fast reply @tas50 . I agree/it's on the docket to upgrade, just clearing out some other tech-debt first.

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

4 participants