DEV Community

Discussion on: TIL: Bundle install with a specific version of Bundler

Collapse
 
olistik profile image
olistik

Hi @talk2megooseman :-) I recently had the need to use a specific version of Bundler and found out that the 2 underscores version doesn't work:

λ ruby -v
ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-linux]
Enter fullscreen mode Exit fullscreen mode
λ bundle __1.17.3__ --version
Could not find command "__1.17.3__".
Enter fullscreen mode Exit fullscreen mode

Using 1 underscore, before and after the version, works:

λ bundle _1.17.3_ --version
Bundler version 1.17.3
Enter fullscreen mode Exit fullscreen mode
Collapse
 
talk2megooseman profile image
Erik Guzman

Awesome, let me update the article

Collapse
 
olistik profile image
olistik

You're welcome. 🙂🎩

I suppose you could also get rid of:

Yep, that is 2 underscores before and after the version you would need to use.

Or change it to say it's 1 underscore.