chef / ohai

Ohai profiles your system and emits JSON
https://docs.chef.io/ohai.html
Apache License 2.0
681 stars 452 forks source link

Installation of version 17.9.0 fails with unavailable dependency #1771

Open balasankarc opened 1 year ago

balasankarc commented 1 year ago

Description

When trying to install version 17.9.0, Rubygems resolves the dependency chef-utils to a non-existent version 17.10.26.

To reproduce, run the following command

$ gem install ohai --version 17.9.0                                                                                                              
ERROR:  Could not find a valid gem 'chef-utils' (= 17.10.26) (required by 'ohai' (= 17.9.0)) in any repository
ERROR:  Possible alternatives: chef-utils
balasankarc commented 1 year ago

Seems in https://github.com/chef/chef/commit/c2c4e6e526655f278a48d6db5015bb2a7fd4609d, version 17.10.26 of chef-utils was cut, but can't be found in Rubygems - https://rubygems.org/gems/chef-utils/versions

balasankarc commented 1 year ago

This issue caused master branch builds (which attempts to install Ohai 17.9.0) at GItLab to fail. Issue being tracked at https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/7267.

balasankarc commented 1 year ago

/cc @vkarve-chef

twk3 commented 1 year ago

This appears to be because chef-config is up as 17.10.26 and is depending on a version of chef-utils that is not present in rubygems.

gracinet commented 1 year ago

I'm affected by this, too.

Preinstalling chef-config 17.10.19 (looks to be the highest before 17.10.26 on rubygems) worked for me to unblock the installation of ohai