Skip to content

Commit

Permalink
Allow ohai versions > 17 to be used
Browse files Browse the repository at this point in the history
The restricton `< 17` was originally added by 2777c5b in
chef#1013 because `omnibus-toolchain`
was still shipping Ruby 2.6 at that time, and Ohai 17 required Ruby 17.
However, starting with
chef/omnibus-toolchain#153, `omnibus-toolchain`
is on Ruby 2.7+, and hence this restriction can be removed.

To be on the safe side, we are bumping the upper limit to 18 to avoid
any surprises when next major version of Ohai comes out.

Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
  • Loading branch information
balasankarc committed Oct 8, 2021
1 parent 37897ad commit 4cda33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion omnibus.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Gem::Specification.new do |gem|
gem.add_dependency "chef-cleanroom", "~> 1.0"
gem.add_dependency "ffi-yajl", "~> 2.2"
gem.add_dependency "mixlib-shellout", ">= 2.0", "< 4.0"
gem.add_dependency "ohai", ">= 15", "< 17"
gem.add_dependency "ohai", ">= 15", "< 18"
gem.add_dependency "ruby-progressbar", "~> 1.7"
gem.add_dependency "thor", ">= 0.18", "< 2.0"
gem.add_dependency "license_scout", "~> 1.0"
Expand Down

0 comments on commit 4cda33b

Please sign in to comment.