ruby/lib/bundler
David Rodríguez 133fec4ce9 [rubygems/rubygems] Fix another strange error when running `bundle add` in frozen mode
If there's a lockfile, but it's out of sync with the Gemfile because a
dependency has been deleted, and frozen mode is set, Bundler will print
the following strange error:

```
$ bundle add rake
, but the lockfile can't be updated because frozen mode is set

You have deleted from the Gemfile:
* rake (~> 13.2)

Run `bundle install` elsewhere and add the updated Gemfile to version control.
```

This commit changes the error to:

```
Some dependencies were deleted from your gemfile, but the lockfile can't be updated because frozen mode is set

You have deleted from the Gemfile:
* rake (~> 13.2)

Run `bundle install` elsewhere and add the updated Gemfile to version control.
```

https://github.com/rubygems/rubygems/commit/452da4048d
2024-07-10 08:04:07 +00:00
..
cli [rubygems/rubygems] Add --no-test, --no-ci, and --no-linter options 2024-06-26 11:24:47 +00:00
compact_index_client [rubygems/rubygems] Revert to splitting parser due to performance regression 2024-06-20 15:18:56 +09:00
fetcher [rubygems/rubygems] Move compact index concurrency to fetcher 2024-05-31 16:41:25 +00:00
installer [rubygems/rubygems] Improve default gem handling by treating default gems as any other gem 2024-05-29 13:55:25 +00:00
man [rubygems/rubygems] Add --no-test, --no-ci, and --no-linter options 2024-06-26 11:24:47 +00:00
plugin [rubygems/rubygems] Add plugin hooks for Bundler.require 2024-04-19 05:18:20 +00:00
resolver [rubygems/rubygems] Fix generic platform gems getting incorrectly removed when locked for a specific platform 2024-07-09 16:34:09 +00:00
settings
source [rubygems/rubygems] Fix credentials being readded when re-resolving without a full unlock 2024-06-20 07:15:06 +00:00
templates [rubygems/rubygems] Bump COCs to latest Contributor Covenant version 2024-05-28 15:10:59 +00:00
ui [rubygems/rubygems] Use match? when regexp match data is unused 2023-12-13 22:00:26 +00:00
vendor [rubygems/rubygems] rake vendor:install 2024-02-08 15:27:01 +09:00
.document [DOC] Exclude Bundler only [ci skip] 2021-12-13 19:47:52 +09:00
build_metadata.rb [rubygems/rubygems] Use modern hashes consistently 2023-12-07 22:29:33 +00:00
bundler.gemspec Normalize bundler bindir 2023-12-13 12:59:23 +09:00
capistrano.rb [rubygems/rubygems] Use modern hashes consistently 2023-12-07 22:29:33 +00:00
checksum.rb [rubygems/rubygems] Let the guards have some space to breathe 2023-12-25 21:12:49 +09:00
ci_detector.rb [rubygems/rubygems] Duplicate Gem::CIDetector into bundler 2023-12-06 20:05:25 +00:00
cli.rb [rubygems/rubygems] Only allow valid values for --test, --ci, and --linter options 2024-07-02 19:54:23 +00:00
compact_index_client.rb [rubygems/rubygems] Fix typo 2024-06-12 12:46:06 +00:00
constants.rb [rubygems/rubygems] Deprecate Bundler constants 2024-05-16 09:20:17 +00:00
current_ruby.rb [rubygems/rubygems] Extract a new small platform helper 2023-11-13 11:06:10 +09:00
definition.rb [rubygems/rubygems] Fix another strange error when running `bundle add` in frozen mode 2024-07-10 08:04:07 +00:00
dependency.rb [rubygems/rubygems] bundler CLI option for add gem --glob= 2024-04-12 13:31:43 +00:00
deployment.rb Merge bundler master from upstream. 2019-06-09 12:44:10 +09:00
deprecate.rb
digest.rb [rubygems/rubygems] Use String#unpack1 available since ruby 3.0 2023-12-06 02:45:37 +00:00
dsl.rb [rubygems/rubygems] Add `gitlab:` Git source shorthand 2024-02-16 04:53:14 +00:00
endpoint_specification.rb [rubygems/rubygems] Fix funding metadata not being printed in some situations 2024-06-14 14:27:02 +00:00
env.rb [rubygems/rubygems] Centralize logic using `Pathname#relative_path_from` 2023-09-27 05:20:58 +00:00
environment_preserver.rb [rubygems/rubygems] Don't upcase Windows ENV when backing it up 2024-04-25 10:35:47 +00:00
errors.rb [rubygems/rubygems] Fix error when Bundler installation is corrupted 2024-05-13 09:19:45 +00:00
feature_flag.rb [rubygems/rubygems] Avoid printing using messages when version has not changed 2023-07-24 15:03:15 +09:00
fetcher.rb [rubygems/rubygems] Use rubygems vendored uri from Bundler when available 2024-01-29 12:15:10 +09:00
force_platform.rb Merge RubyGems-3.4.0 and Bundler-2.4.0 2022-12-24 16:57:07 +09:00
friendly_errors.rb [rubygems/rubygems] Use modern hashes consistently 2023-12-07 22:29:33 +00:00
gem_helper.rb [rubygems/rubygems] Fix typo in description of build:checksum task 2024-05-26 21:42:45 +00:00
gem_helpers.rb [rubygems/rubygems] Fix generic platform gems getting incorrectly removed when locked for a specific platform 2024-07-09 16:34:09 +00:00
gem_tasks.rb Merge bundler master from upstream. 2019-06-09 12:44:10 +09:00
gem_version_promoter.rb [rubygems/rubygems] Let GemVersionPromoter sort in preferred order directly 2024-04-01 15:03:25 +00:00
graph.rb [rubygems/rubygems] Use modern hashes consistently 2023-12-07 22:29:33 +00:00
index.rb [rubygems/rubygems] rename Index#== to Index#subset? 2023-10-23 13:59:01 +09:00
injector.rb [rubygems/rubygems] Fix strange error when running `bundle add` with frozen mode set 2024-07-10 08:04:07 +00:00
inline.rb [rubygems/rubygems] Use modern hashes consistently 2023-12-07 22:29:33 +00:00
installer.rb [rubygems/rubygems] Fix strange error when running `bundle add` with frozen mode set 2024-07-10 08:04:07 +00:00
lazy_specification.rb [rubygems/rubygems] include MatchMetadata in Bundler::LazySpecification 2024-01-11 04:19:13 +00:00
lockfile_generator.rb [rubygems/rubygems] Converts Bundler lockfile checksum validation to opt-in only 2023-12-05 21:09:53 +00:00
lockfile_parser.rb [rubygems/rubygems] Converts Bundler lockfile checksum validation to opt-in only 2023-12-05 21:09:53 +00:00
match_metadata.rb [rubygems/rubygems] Fix universal lockfiles regression 2023-11-22 13:17:12 +00:00
match_platform.rb [rubygems/rubygems] auto-correct Style/YodaCondition 2023-06-15 07:01:28 +09:00
match_remote_metadata.rb Merge 16c3535413 2022-09-05 14:37:12 +09:00
mirror.rb [rubygems/rubygems] Use rubygems vendored uri from Bundler when available 2024-01-29 12:15:10 +09:00
plugin.rb [rubygems/rubygems] Remove more methods now defined in all RubyGems versions 2023-12-14 20:22:48 +08:00
process_lock.rb [rubygems/rubygems] Ignore `Errno::EROFS` errors when creating `bundler.lock` 2022-05-30 00:27:43 +09:00
remote_specification.rb Merge RubyGems-3.5.2 and Bundler-2.5.2 2023-12-22 07:24:04 +09:00
resolver.rb [rubygems/rubygems] Fix generic platform gems getting incorrectly removed when locked for a specific platform 2024-07-09 16:34:09 +00:00
retry.rb [rubygems/rubygems] 🚨 Rubocop Linting 2023-10-03 16:13:18 +09:00
ruby_dsl.rb [rubygems/rubygems] Make RubyDsl a little easier to read; avoid a Hash sometimes 2023-12-12 15:26:01 +00:00
ruby_version.rb [rubygems/rubygems] Let RuboCop target Ruby 3.0 2023-11-13 11:06:10 +09:00
rubygems_ext.rb [rubygems/rubygems] Fix wrong version is comment 2024-07-08 17:06:26 +00:00
rubygems_gem_installer.rb [rubygems/rubygems] Backport binstub race condition fix to Bundler 2024-07-08 17:06:25 +00:00
rubygems_integration.rb [rubygems/rubygems] Only validate resolution info in Bundler 2024-06-25 14:32:20 +00:00
runtime.rb [rubygems/rubygems] Fix strange error when running `bundle add` with frozen mode set 2024-07-10 08:04:07 +00:00
safe_marshal.rb Merge https://github.com/rubygems/rubygems/pull/6655 manually. 2023-05-10 15:02:29 +09:00
self_manager.rb Synchronize Bundler & RubyGems (#11071) 2024-06-28 10:12:29 -04:00
settings.rb [rubygems/rubygems] Avoid appending a final "/" when `fallback_timeout` is used in config 2024-06-06 18:53:31 +00:00
setup.rb [rubygems/rubygems] Auto switch to locked bundler version even when using binstubs 2024-06-11 13:30:50 +00:00
shared_helpers.rb [rubygems/rubygems] Autoload `pathname` at the top level 2024-06-06 18:44:35 +00:00
similarity_detector.rb Merge bundler-2.2.0.rc.2 2020-10-15 17:19:02 +09:00
source.rb [rubygems/rubygems] Refactor to checksums stored via source 2023-10-23 13:59:01 +09:00
source_list.rb [rubygems/rubygems] Fix performance regression on applications with a local cache 2024-05-24 15:02:30 +00:00
source_map.rb [rubygems/rubygems] Fix corrupted lockfile when using `gemspec` and multiple sources 2022-02-11 18:20:20 +09:00
spec_set.rb [rubygems/rubygems] Refactor selecting specs from a SpecSet 2024-07-09 16:34:09 +00:00
stub_specification.rb [rubygems/rubygems] Refactor to checksums stored via source 2023-10-23 13:59:01 +09:00
ui.rb Merge bundler master from upstream. 2019-06-09 12:44:10 +09:00
uri_credentials_filter.rb [rubygems/rubygems] Use rubygems vendored uri from Bundler when available 2024-01-29 12:15:10 +09:00
uri_normalizer.rb Normalize git sources 2023-03-17 18:50:55 +09:00
vendored_fileutils.rb [bundler/bundler] No need to activate the `fileutils` default gem 2019-08-18 13:45:45 +09:00
vendored_net_http.rb Synchronize Bundler & RubyGems (#11071) 2024-06-28 10:12:29 -04:00
vendored_persistent.rb [rubygems/rubygems] Use vendored net-http in Bundler 2023-12-13 12:16:55 +09:00
vendored_pub_grub.rb Migrate our resolver engine to PubGrub 2022-11-12 07:40:31 +09:00
vendored_thor.rb [bundler/bundler] Migrate two more requires to be relative 2019-08-03 09:29:55 +09:00
vendored_timeout.rb [rubygems/rubygems] Keep compatiblity for RG 3.5 2024-02-26 22:04:08 +00:00
vendored_tsort.rb Support gemification of tsort 2021-10-29 17:32:52 +09:00
vendored_uri.rb [rubygems/rubygems] Use rubygems vendored uri from Bundler when available 2024-01-29 12:15:10 +09:00
version.rb Merge RubyGems-3.6.0.dev and Bundler-2.6.0.dev from master branch 2023-12-25 21:12:49 +09:00
vlad.rb [rubygems/rubygems] Use modern hashes consistently 2023-12-07 22:29:33 +00:00
worker.rb Merge RubyGems/Bundler master 2022-12-12 10:49:43 +09:00
yaml_serializer.rb [rubygems/rubygems] Move Bundler settings specific logic to Bundler 2024-06-06 18:53:29 +00:00