Bundle install failing for chef-dk repo FreeBSD


#1

Hi,

I recently found this article that explains how to build chefdk on FreeBSD. I have tried it and I fail with the following error when doing a bundle install

marbury@quidnac:/usr/home/marbury/Projects/Private/chef-dk$ bundle install --without development

The git source `git://github.com/chef/appbundler.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
The git source `git://github.com/chef/chef.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
The git source `git://github.com/chef/opscode-pushy-client.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
fatal: no submodule mapping found in .gitmodules for path 'acceptance/vendor/bundle/bundler/gems/chef-acceptance-47e931cec100'

Retrying `git submodule deinit --all` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git submodule deinit --all` in directory /usr/home/marbury/.bundle/ruby/2.2/chef-fecaf2fc865e has failed.
If this error persists you could try removing the cache directory '/home/marbury/.bundle/cache/git/chef-c4d75d21575d31601e4bf75e3edca0ea7a90bd0b'fatal: no submodule mapping found in .gitmodules for path 'acceptance/vendor/bundle/bundler/gems/chef-acceptance-47e931cec100'

Retrying `git submodule deinit --all` due to error (3/4): Bundler::Source::Git::GitCommandError Git error: command `git submodule deinit --all` in directory /usr/home/marbury/.bundle/ruby/2.2/chef-fecaf2fc865e has failed.
If this error persists you could try removing the cache directory '/home/marbury/.bundle/cache/git/chef-c4d75d21575d31601e4bf75e3edca0ea7a90bd0b'fatal: no submodule mapping found in .gitmodules for path 'acceptance/vendor/bundle/bundler/gems/chef-acceptance-47e931cec100'

Retrying `git submodule deinit --all` due to error (4/4): Bundler::Source::Git::GitCommandError Git error: command `git submodule deinit --all` in directory /usr/home/marbury/.bundle/ruby/2.2/chef-fecaf2fc865e has failed.
If this error persists you could try removing the cache directory '/home/marbury/.bundle/cache/git/chef-c4d75d21575d31601e4bf75e3edca0ea7a90bd0b'fatal: no submodule mapping found in .gitmodules for path 'acceptance/vendor/bundle/bundler/gems/chef-acceptance-47e931cec100'
Git error: command `git submodule deinit --all` in directory /usr/home/marbury/.bundle/ruby/2.2/chef-fecaf2fc865e has failed.
If this error persists you could try removing the cache directory '/home/marbury/.bundle/cache/git/chef-c4d75d21575d31601e4bf75e3edca0ea7a90bd0b'

What am i missing here? It is also failing, if I use the rake bundle:install task. I can do a rake install which works but then I miss out on alot of gems (as it seems)

I cannot use one of the prebuilt packages, because FreeBSD is not supported, but I need to be able to develop and test Chef Cookbooks on FreeBSD (See my other ticket)

Thanks for your support :slight_smile:

Stefan


#2

Stefan,

This is due to the version of chef that ChefDK is trying to pull in right now. When we release the official 12.17 build and bump ChefDK this will go away. It’s not just a FreeBSD issue. Give it a week.

-Tim


#3

Hi,

thanks for the quick answer. That sounds nice. I will wait then :slight_smile:

Cheers,
Stefan