habitat-sh / core-plans

Core Habitat Plan definitions
130 stars 252 forks source link

[scaffolding-ruby] redundant core/bundler inclusion #4199

Open jritchie-nullable opened 3 years ago

jritchie-nullable commented 3 years ago

The ruby scaffolding is setup to pull the latest version of core/ruby which at this time is 3.0.2. This version of Ruby includes the bundler module (version 2.2.22) out of the box. The scaffolding also pulls in core/bundler which has the bundler module at version 2.2.14.

This causes an issue at the vendoring phase where the bundler is identified as version 2.2.22 but tries to vendor from the 2.2.14 core/bundler path.

minimal: Vendoring 'bundler' version 2.2.22 ERROR: Could not find a valid gem '/hab/pkgs/core/bundler/2.2.14/20211019145057/cache/bundler-2.2.22.gem' (>= 0) in any repository

jritchie-nullable commented 3 years ago

Minimal(ish) reproducible example: https://github.com/jritchie-nullable/scaffolding-ruby-issues