sous-chefs / elixir

Development repository for the elixir cookbook
https://supermarket.chef.io/cookbooks/elixir
Apache License 2.0
17 stars 12 forks source link

Libarchive dependency breaks Chef v12 #8

Closed phoolish closed 4 years ago

phoolish commented 6 years ago

Cookbook version

1.0.1

Chef-client version

12.22.5

Platform Details

Amazon Linux 2016.09

Scenario:

Trying to run elixir::default recipe.

Steps to Reproduce:

Add elixir::default to your run_list on a system running chef-client v12.

Expected Result:

I expect the recipe to install elixir and erlang on the system.

Actual Result:

---- Begin output of bundle install ----
STDOUT: Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching gem metadata from https://rubygems.org/.............
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using aws-sigv4 1.0.2
Using jmespath 1.4.0
Using ffi 1.9.25
Using bundler 1.12.5
Using aws-sdk-core 2.11.67
Installing ffi-libarchive 0.4.1

Gem::InstallError: ffi-libarchive requires Ruby version >= 2.4.0.
Using aws-sdk-resources 2.11.67
An error occurred while installing ffi-libarchive (0.4.1), and Bundler cannot
continue.
Make sure that `gem install ffi-libarchive -v '0.4.1'` succeeds before bundling.
STDERR: 
---- End output of bundle install ----

This seems to happen because the latest version of libarchive cookbook was released with a gem dependency that is not compatible with the default version of Ruby embedded with Chef 12. Either bump the min chef version requirement or lock the libarchive dependency at v1.

github-actions[bot] commented 4 years ago

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

github-actions[bot] commented 4 years ago

Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.