neillturner / kitchen-verifier-serverspec

A Test Kitchen Serverspec Verifer without having to transit the Busser layer
Other
39 stars 19 forks source link

APT Ruby package does not provide /usr/bin/bundle #44

Open Gounick opened 2 years ago

Gounick commented 2 years ago

https://github.com/neillturner/kitchen-verifier-serverspec/blob/df90760efdce59ef28a15a798a9759432a37f391/lib/kitchen/verifier/serverspec.rb#L134-L143

Hello, Under Debian11 and Ubuntu20.04, the kitchen test command fails on this file because apt-get install ruby installs ruby2.7 which provides /usr/bin/bundle2.7 and $(which bundle) returns nothing.

I fixed this problem by replacing ruby withruby-bundler which provides the expected executable /usr/bin/bundle

$ apt-file search /usr/bin/bundle
ruby-bundler: /usr/bin/bundle
ruby-bundler: /usr/bin/bundler
ruby2.7: /usr/bin/bundle2.7
ruby2.7: /usr/bin/bundler2.7