jonathanmorley / asdf-bundler

Apache License 2.0
7 stars 4 forks source link

Shim script launches incorrect version of Bundler #3

Closed raxod502 closed 2 years ago

raxod502 commented 3 years ago

After installing Bundler with this plugin:

% which -a bundle    
/usr/bin/bundle
/bin/bundle
% bundle version
Bundler version 2.1.2 (2021-05-12 commit unknown)
% ASDF_BUNDLER_VERSION=1.17.3 asdf exec bundle version
Bundler version 2.1.2 (2021-05-12 commit unknown)
% ~/.asdf/installs/bundler/1.17.3/exe/bundle version  
Bundler version 2.1.2 (2021-05-12 commit unknown)

Workaround:

% RUBYLIB=~/.asdf/installs/bundler/1.17.3/lib ASDF_BUNDLER_VERSION=1.17.3 asdf exec bundle version 
Bundler version 1.17.3 (2018-12-27 commit d7089abb6)
raxod502 commented 3 years ago

Reported upstream at https://github.com/rubygems/rubygems/issues/4597.

raxod502 commented 2 years ago

Should be fixed now with the latest PR merge, though tests are not passing yet due to an upstream issue in asdf