Closed edwardsamuel closed 8 years ago
Thanks for the report!
How do you get this commit as a cookbook?
Berksfile is
...
cookbook 'poise-ruby-build', git: 'https://github.com/poise/poise-ruby-build.git', ref: 'a50fc5ac8caa4278138c910d0f24cd6a9c947747'
...
I got this error: The resource at '/var/folders/g7/g_bxwd2s7_53mqjnsmn_crl80000gn/T/d20160225-38460-9fmsa7' does not appear to be a valid cookbook. Does it have a metadata.rb?
$ berks install -d
...
I, [2016-02-25T13:15:07.971960 #38460] INFO -- : Installing from universe
Fetching 'poise-ruby-build' from https://github.com/poise/poise-ruby-build.git (at a50fc5a)
The resource at '/var/folders/g7/g_bxwd2s7_53mqjnsmn_crl80000gn/T/d20160225-38460-9fmsa7' does not appear to be a valid cookbook. Does it have a metadata.rb?
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/locations/base.rb:59:in `validate_cached!'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/locations/git.rb:67:in `install'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/installer.rb:184:in `block in download_locations'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/installer.rb:181:in `each'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/installer.rb:181:in `download_locations'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/installer.rb:154:in `install_from_universe'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/installer.rb:39:in `run'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/berksfile.rb:374:in `install'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/cli.rb:143:in `install'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/cli.rb:52:in `dispatch'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/lib/berkshelf/cli.rb:27:in `execute!'
/Users/ytabira/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/berkshelf-4.0.1/bin/berks:5:in `<top (required)>'
/Users/ytabira/.rbenv/versions/2.2.3/bin/berks:23:in `load'
/Users/ytabira/.rbenv/versions/2.2.3/bin/berks:23:in `<main>'
Thank you for your quick reply!
Can you please tag a new version with this ? It's very hard to accomplish this pre-release magic with Berkshire and impossible with Librarian.
Thanks.
When I run this recipes:
I got
NameError: No resource, method, or local variable named
remove_ruby' forPoiseRuby::RubyBuild::Provider ""'
.When I check on this project (poise-ruby-build), I found that
remove_ruby
is called in https://github.com/poise/poise-ruby-build/blob/v1.0.1/lib/poise_ruby/ruby_build/provider.rb#L99, but there is noremove_ruby
method defined.