kitchen-verifier-serverspec icon indicating copy to clipboard operation
kitchen-verifier-serverspec copied to clipboard

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

Open Gounick opened this issue 3 years ago • 0 comments

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 with ruby-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

Gounick avatar Dec 03 '21 19:12 Gounick