Julie Haehn c5296d9396 [rubygems/rubygems] Respect --no-install option for git: sources
Currently, the --no-install option to `bundle package` is totally
ignored for git sources. This can have very strange effects if you have:

- a git-sourced gem,
- with native extensions,
- whose extconf.rb script depends on another gem,
- which is installed from Rubygems in the gemfile.

In that circumstance, `bundle package --no-install --all` will download
the Rubygems dependencies to `vendor/cache` but NOT install them. It
will also check out the git gems to `vendor/cache` (good), and attempt
to build their native extensions (bad!).

The native extension build will fail because the extconf.rb script crashes,
since the dependency it needs is missing.

I implemented a fix for this in `source/git.rb`, since this is analogous
to what's happening in `source/rubygems.rb`. I do admit though the whole
thing is a little strange though - an "install" method that.... proceeds
to look at a global flag to not install anything.

Add test to confirm cache respects the --no-install flag

https://github.com/rubygems/rubygems/commit/5a77d1c397

Co-authored-by: KJ Tsanaktsidis <kj@kjtsanaktsidis.id.au>
2023-03-07 22:36:36 +00:00
..
2022-12-05 05:59:33 +00:00
2022-11-29 04:58:29 +00:00
2023-03-07 02:47:15 +00:00
2023-03-07 01:35:20 +00:00
2022-12-14 05:49:14 +00:00
2023-03-03 13:46:04 +09:00
2023-03-06 23:44:01 -08:00
2022-12-09 16:36:22 +09:00
2022-11-28 04:40:26 +00:00
2023-03-06 23:44:01 -08:00
2022-12-05 06:32:03 +00:00
2023-01-12 05:41:59 +00:00
2022-12-05 07:35:19 +00:00
2022-12-14 16:07:44 +09:00
2023-02-16 00:57:08 +00:00
2022-12-05 08:18:33 +00:00