New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bundle package --all fails if BUNDLE_CACHE_ALL is set to true in .bundle/config #3598
Comments
It looks like the behavior for For anyone that wants to look at the change history: |
Right. I've been going back and forth with this over time, trying to figure out what the original plan was and trying to provide a smooth transition. The quick fix to your problem is to remove the But after looking at this again (thanks for the history @FTLam11) I believe rubygems/bundler@04a0471 was wrong because it not only restored the removal of the Something I'm not clear about is whether the "no path and git" gems in If removing the option is the preferred approach, then I would:
If on the contrary we consider both
|
I finally went with:
Since I don't really know whether it makes sense or not, to not cache path and git gems, I went with the most conservative option of keeping the choice. Feel free to give the PR a try! |
With the following barebones Gemfile, or any Gemfile:
Run:
What are you trying to accomplish?
Your answer: Trying to run
bundle package --all
consistently in an automated deployment pipeline.What command did you run?
Your answer:
bundle package --all
multiple times during various stages of building a docker image.What were you expecting to happen?
Your answer: Bundler to correctly and consistently package the gems
What actually happened?
Your answer: Bundler correctly packaged the gems the first time and them automatically put
BUNDLE_CACHE_ALL: "true"
into .bundle/config. The second time running the same command generates the following error:Unknown switches "--all"
Is there an exception backtrace? If so, please copy it below.
Your answer: No backtrace available
Please run
bundle env
and paste the output below:On my local machine:
Environment
Bundler Build Metadata
Bundler settings
Gemfile
Gemfile
Gemfile.lock
The text was updated successfully, but these errors were encountered: