{"record":{"id":"0c5ddf1bdcaf6503","repo":"ruby/rubygems","slug":"the-install-flag-has-been-removed-bundle-ins","errorCode":null,"errorMessage":"The `--install` flag has been removed. `bundle install` is triggered by default.","messagePattern":"The `--install` flag has been removed\\. `bundle install` is triggered by default\\.","errorType":"validation","errorClass":"InvalidOption","httpStatus":null,"severity":"error","filePath":"lib/bundler/cli.rb","lineNumber":236,"sourceCode":"    method_option \"path\", type: :string, banner: \"Specify a different path than the system default, namely, $BUNDLE_PATH or $GEM_HOME (removed)\"\n    def check\n      remembered_flag_deprecation(\"path\")\n\n      require_relative \"cli/check\"\n      Check.new(options).run\n    end\n\n    map aliases_for(\"check\")\n\n    desc \"remove [GEM [GEM ...]]\", \"Removes gems from the Gemfile\"\n    long_desc <<-D\n      Removes the given gems from the Gemfile while ensuring that the resulting Gemfile is still valid. If the gem is not found, Bundler prints a error message and if gem could not be removed due to any reason Bundler will display a warning.\n    D\n    method_option \"install\", type: :boolean, banner: \"Runs 'bundle install' after removing the gems from the Gemfile (removed)\"\n    def remove(*gems)\n      if ARGV.include?(\"--install\")\n        removed_message = \"The `--install` flag has been removed. `bundle install` is triggered by default.\"\n        raise InvalidOption, removed_message\n      end\n\n      require_relative \"cli/remove\"\n      Remove.new(gems, options).run\n    end\n\n    desc \"install [OPTIONS]\", \"Install the current environment to the system\"\n    long_desc <<-D\n      Install will install all of the gems in the current bundle, making them available\n      for use. In a freshly checked out repository, this command will give you the same\n      gem versions as the last person who updated the Gemfile and ran `bundle update`.\n\n      Passing [DIR] to install (e.g. vendor) will cause the unpacked gems to be installed\n      into the [DIR] directory rather than into system gems.\n\n      If the bundle has already been installed, bundler will tell you so and then exit.\n    D\n    method_option \"binstubs\", type: :string, lazy_default: \"bin\", banner: \"Generate bin stubs for bundled gems to ./bin (removed)\"","sourceCodeStart":218,"sourceCodeEnd":254,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli.rb#L218-L254","documentation":"Error \"The `--install` flag has been removed. `bundle install` is triggered by default.\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli.rb:236 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"}