-
-
Notifications
You must be signed in to change notification settings - Fork 2k
bundle package --all is broken in bundler 1.11.0 #4158
Comments
Just slammed into this myself while testing our build process with the new version of bundler. |
Thanks for the bug report! Well try and debug unless someone beats us to making a PR with a fix. |
@segiddins I've been working on a PR for this but I'm a bit stuck. It seems that the issue is that in # @original_path == '.'
# app_cache_path == '/Users/User/workspace/gem_name/vendor/cache/gem_name'
FileUtils.cp_r("#{@original_path}/.", app_cache_path) This tries to copy all the contents of the current directory A potential fix I see is that in next if spec.name == "bundler" If we changed it to
then the caching operation for the gem wouldn't try to cache itself and all of its directory contents. However, not sure if there's anywhere during runtime that we'd be able to pull the name of the gem being packaged from? |
This still seems to occur. |
@glennpratt could you please open up a new issue? The command you're running seems to be slightly different/have extra flags. Additionally, in your issue, could you note whether running |
Can't replicate this with running |
@RochesterinNYC thanks for looking, I figured out how to reproduce it: #4392. Pretty easy to workaround. |
I ran the command
/usr/local/bin/bundle package --all
I expected
bundle package --all
to work.Instead, the command seems to create vendor/cache/PROJECTNAME/vendor/cache/PROJECTNAME/... in and endless loop until the file system permits.
The text was updated successfully, but these errors were encountered: