1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/bundler/support
David Rodríguez ea31c5bcd1 [rubygems/rubygems] Fix crash when installing gems with symlinks
If BUNDLE_PATH is configured to a symlinked path, installing gems with
symlinks would crash with an error like this:

```
Gem::Package::SymlinkError: installing symlink 'man/man0/README.markdown' pointing to parent path /usr/home/stevewi/srv/mail/lib/tools/.vendor/ruby/3.1.0/gems/binman-5.1.0/README.markdown of /srv/mail/lib/tools/.vendor/ruby/3.1.0/gems/binman-5.1.0 is not allowed
```

This commit fixes the problem by changing the bundle path to be the
realpath of the configured value, right after we're sure the path has
been created.

https://github.com/rubygems/rubygems/commit/3cd3dd142a
2022-05-30 17:42:39 +09:00
..
artifice Merge rubygems/rubygems HEAD. 2022-01-19 15:01:44 +09:00
api_request_limit_hax.rb
build_metadata.rb
builders.rb [rubygems/rubygems] Fix crash when installing gems with symlinks 2022-05-30 17:42:39 +09:00
bundle.rb
command_execution.rb
filters.rb
hax.rb Sync latest Bundler & RubyGems 2022-02-01 08:09:23 +09:00
helpers.rb [rubygems/rubygems] Fix error message on metadata mismatches 2022-05-11 16:55:49 +09:00
indexes.rb
matchers.rb
path.rb Merge RubyGems and Bundler HEAD 2022-05-20 17:32:19 +09:00
permissions.rb
platforms.rb
rubygems_ext.rb Merge RubyGems and Bundler HEAD 2022-05-20 17:32:19 +09:00
rubygems_version_manager.rb
silent_logger.rb
sudo.rb Merge RubyGems and Bundler HEAD 2022-05-20 17:32:19 +09:00
switch_rubygems.rb
the_bundle.rb