{"record":{"id":"a619dfb89ad61c48","repo":"ruby/rubygems","slug":"to-update-everything-pass-the-all-flag","errorCode":null,"errorMessage":"To update everything, pass the `--all` flag.","messagePattern":"To update everything, pass the `--all` flag\\.","errorType":"exception","errorClass":"InvalidOption","httpStatus":null,"severity":"error","filePath":"lib/bundler/cli/update.rb","lineNumber":25,"sourceCode":"      @options = options\n      @gems = gems\n    end\n\n    def run\n      Bundler.ui.level = \"warn\" if options[:quiet]\n\n      update_bundler = options[:bundler]\n\n      Bundler.self_manager.update_bundler_and_restart_with_it_if_needed(update_bundler) if update_bundler\n\n      sources = Array(options[:source])\n      groups  = Array(options[:group]).map(&:to_sym)\n\n      full_update = gems.empty? && sources.empty? && groups.empty? && !options[:ruby] && !update_bundler\n\n      if full_update && !options[:all]\n        if Bundler.settings[:update_requires_all_flag]\n          raise InvalidOption, \"To update everything, pass the `--all` flag.\"\n        end\n        SharedHelpers.feature_deprecated! \"Pass --all to `bundle update` to update everything\"\n      elsif !full_update && options[:all]\n        raise InvalidOption, \"Cannot specify --all along with specific options.\"\n      end\n\n      conservative = options[:conservative]\n\n      unlock = if full_update\n        if conservative\n          { conservative: conservative }\n        else\n          true\n        end\n      else\n        unless Bundler.default_lockfile.exist?\n          raise GemfileLockNotFound, \"This Bundle hasn't been installed yet. \" \\\n            \"Run `bundle install` to update and install the bundled gems.\"","sourceCodeStart":7,"sourceCodeEnd":43,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli/update.rb#L7-L43","documentation":"Error \"To update everything, pass the `--all` flag.\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli/update.rb:25 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}