Skip to content

Conversation

@seuros
Copy link

@seuros seuros commented Jan 5, 2026

I found this bug that happens only if we have dev dependency pointing to git sources.

@hsbt
Copy link
Member

hsbt commented Jan 7, 2026

Please describe detail of your issue and add test for that scenario. I'm not sure what is the problem.

@seuros seuros force-pushed the fix-git-preload branch 2 times, most recently from 4dbeb4c to 8b1b9eb Compare January 7, 2026 09:42
@seuros
Copy link
Author

seuros commented Jan 7, 2026

When running bundle install --without development, bundler was still fetching all git sources via source.specs, including those only used by excluded groups.

Example scenario:

  • Gemfile has git gem rails in default group , via github
  • Gemfile has git gem rails_lens in development group also via github
  • Running bundle install --without development would fetch both git repos
  • With this fix, only rails is fetched

It only happens if rails_lens is via git source.

i have a pretty large github repository with my tools and noticed that the docker image differed largely when bundled via bundler vs ore vs gel.

Skip fetching git sources for excluded groups (--without). This is
important for production builds where development git dependencies
may be private repos without access, or should not be included in
Docker images.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants