@@ -335,3 +335,28 @@ your CI status, will be the first to know about any failures from
335335dependency changes.
336336Finally, when publishing your gem, consider deleting and regenerating your Gemfile.lock with the latest
337337dependencies just before running your tests.
338+
339+ ### Why Don't Git Gems Show Up in ` gem list ` ?
340+
341+ ** Q** : I added a gem with a ` :git ` source in my ` Gemfile ` , but it doesn't
342+ appear in ` gem list ` and its executables are not in my PATH. Where did it go?
343+
344+ ** A** : Bundler installs git gems into a separate internal directory, not into
345+ the same location as gems installed from RubyGems.org. This means they will
346+ not appear in ` gem list ` output, and their executables will not be available
347+ in the shell PATH directly.
348+
349+ To run executables from git gems, use ` bundle exec ` . To check which git gems
350+ are installed in your bundle, run ` bundle list ` .
351+
352+ ### Why Can't I Use Different Versions of a Gem in Different Groups?
353+
354+ ** Q** : I want to use one version of a gem in development and a different
355+ version in production. Can I specify different versions in different groups?
356+
357+ ** A** : No. Bundler resolves a single version for each gem across all groups
358+ and all platforms. This is by design — ` Gemfile.lock ` must contain one
359+ resolved version per gem so that every environment uses the same dependency
360+ set. If Bundler allowed different versions per group, installing in one
361+ environment could silently change which version of a gem you get in another,
362+ defeating the purpose of the lockfile.
0 commit comments