neillturner / kitchen-verifier-serverspec

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

bundler v2.2.30 breaks remote gem installation #43

Open aerickson opened 2 years ago

aerickson commented 2 years ago

Bundler::GemNotFound: Could not find net-telnet-0.1.1.gem for installation full log: https://github.com/aerickson/test_kitchen_docker_serverspec_bug_demo/runs/4099762256?check_suite_focus=true

demo repo: https://github.com/aerickson/test_kitchen_docker_serverspec_bug_demo

Setting a non-standard path for bundler (via --path) makes bundle install work, but a next step fails because it can't find rspec. Need to use bundle exec to find it in the non-standard path, but having issues with multiple which levels. See https://github.com/aerickson/test_kitchen_docker_serverspec_bug_demo/tree/fix_attempt.

aerickson commented 2 years ago

The bundler change that causes this via bisect: https://github.com/rubygems/rubygems/pull/4974.

aerickson commented 2 years ago

Setting remote_exec to false works around this for my basic test.

verifier:
  name: serverspec
  remote_exec: false