On a fresh RVM install when running a bundle install with the --without flag I'm seeing:
$ bundle install --without=metrics
https://github.com/org/somerepo.git (at v0.15.35) is not checked out. Please run `bundle install`
The repo https://github.com/org/somerepo.git is only listed in the bundle group metrics, so in theory it should not be trying to reference it.
To work around this I've found that you can:
bundle install --without=metrics
$ bundle --version
Bundler version 1.1.5
$ ruby --version
ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02
So this is a bug... but it's only a bug in the sense that it should check out the repo even when you try to exclude it using --without. It's only possible to avoid checking out git repos if you already have a complete Gemfile.lock (and you might have to run bundle install with the --deployment flag on top of that).
Did you run bundle clean by chance? There was a bug with this that I fixed in bundler 1.2.0.rc.2. See this diff. We haven't backported this to 1-1-stable.
@indirect A complete Gemfile.lock was available, but I did not try the --deployment flag.
@hone I did not run bundle clean. This was the first I had bun bundle install on this project after a full reinstall of RVM + REE.
@hone, @indirect: I think this bug is fixed now. Correct?
It should be fixed, yes.