{"record":{"id":"1dde06eb6799c402","repo":"ruby/rubygems","slug":"local-git-has-been-removed-use-git","errorCode":null,"errorMessage":"--local_git has been removed, use --git","messagePattern":"--local_git has been removed, use --git","errorType":"exception","errorClass":"InvalidOption","httpStatus":null,"severity":"error","filePath":"lib/bundler/cli/plugin.rb","lineNumber":19,"sourceCode":"# frozen_string_literal: true\n\nrequire_relative \"../vendored_thor\"\nmodule Bundler\n  class CLI::Plugin < Thor\n    desc \"install PLUGINS\", \"Install the plugin from the source\"\n    long_desc <<-D\n      Install plugins either from the rubygems source provided (with --source option), from a git source provided with --git, or a local path provided with --path. If no sources are provided, it uses Gem.sources\n   D\n    method_option \"source\", type: :string, default: nil, banner: \"URL of the RubyGems source to fetch the plugin from\"\n    method_option \"version\", type: :string, default: nil, banner: \"The version of the plugin to fetch\"\n    method_option \"git\", type: :string, default: nil, banner: \"URL of the git repo to fetch from\"\n    method_option \"local_git\", type: :string, default: nil, banner: \"Path of the local git repo to fetch from (removed)\"\n    method_option \"branch\", type: :string, default: nil, banner: \"The git branch to checkout\"\n    method_option \"ref\", type: :string, default: nil, banner: \"The git revision to check out\"\n    method_option \"path\", type: :string, default: nil, banner: \"Path of a local gem to directly use\"\n    def install(*plugins)\n      if options.key?(:local_git)\n        raise InvalidOption, \"--local_git has been removed, use --git\"\n      end\n\n      Bundler::Plugin.install(plugins, options)\n    end\n\n    desc \"uninstall PLUGINS\", \"Uninstall the plugins\"\n    long_desc <<-D\n      Uninstall given list of plugins. To uninstall all the plugins, use -all option.\n    D\n    method_option \"all\", type: :boolean, default: nil, banner: \"Uninstall all the installed plugins. If no plugin is installed, then it does nothing.\"\n    def uninstall(*plugins)\n      Bundler::Plugin.uninstall(plugins, options)\n    end\n\n    desc \"list\", \"List the installed plugins and available commands\"\n    def list\n      Bundler::Plugin.list\n    end","sourceCodeStart":1,"sourceCodeEnd":37,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli/plugin.rb#L1-L37","documentation":"Error \"--local_git has been removed, use --git\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli/plugin.rb:19 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"}