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

Use of incorrect cookbook version format prevents berkshelf from being able to install the cookbook #70

Closed
brenttheisen opened this issue Jun 18, 2014 · 0 comments · Fixed by #72

Comments

@brenttheisen
Copy link
Contributor

Getting the following error while attempting to use berkshelf to install this cookbook. The reason why is the current version of the cookbook is 2.5.0.pre when really it should be 2.5.0-pre in order to conform with the Chef cookbook versioning standard (see this Berkshelf issue).

wasted:womply-kitchen brent$ berks
Resolving cookbook dependencies...
Fetching 'cassandra' from https://github.com/michaelklishin/cassandra-chef-cookbook.git (at master)
/Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/semverse-1.1.0/lib/semverse/version.rb:29:in `split': '2.5.0.pre' did not contain a valid version string: 'x.y.z' or 'x.y'. (Semverse::InvalidVersionFormat)
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/semverse-1.1.0/lib/semverse/version.rb:64:in `initialize'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/semverse-1.1.0/lib/semverse/version.rb:10:in `new'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/semverse-1.1.0/lib/semverse/version.rb:10:in `coerce'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/semverse-1.1.0/lib/semverse/constraint.rb:240:in `satisfies?'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/locations/base.rb:64:in `validate_cached!'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/locations/git.rb:67:in `install'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/installer.rb:179:in `block in download_locations'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/installer.rb:176:in `each'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/installer.rb:176:in `download_locations'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/installer.rb:149:in `install_from_universe'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/installer.rb:39:in `run'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/berksfile.rb:371:in `install'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/cli.rb:143:in `install'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/cli.rb:52:in `dispatch'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/lib/berkshelf/cli.rb:27:in `execute!'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/gems/berkshelf-3.1.3/bin/berks:5:in `<top (required)>'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/bin/berks:23:in `load'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/bin/berks:23:in `<main>'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/bin/ruby_executable_hooks:15:in `eval'
        from /Users/brent/.rvm/gems/ruby-2.0.0-p451@womply-kitchen-gemset/bin/ruby_executable_hooks:15:in `<main>'
brenttheisen added a commit to brenttheisen/cassandra-chef-cookbook that referenced this issue Jun 18, 2014
brenttheisen added a commit to brenttheisen/cassandra-chef-cookbook that referenced this issue Jun 18, 2014
michaelklishin added a commit that referenced this issue Jun 18, 2014
Fix incorrect version format reported in #70.
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

Successfully merging a pull request may close this issue.

1 participant