{"record":{"id":"8a98680dc09c3b53","repo":"ruby/rubygems","slug":"normalize-platforms-can-t-be-used-with-add-pla","errorCode":null,"errorMessage":"--normalize-platforms can't be used with --add-platform","messagePattern":"--normalize-platforms can't be used with --add-platform","errorType":"exception","errorClass":"InvalidOption","httpStatus":null,"severity":"error","filePath":"lib/bundler/cli/lock.rb","lineNumber":94,"sourceCode":"        else\n          file = options[:lockfile]\n          file = file ? Pathname.new(file).expand_path : Bundler.default_lockfile\n\n          puts \"Writing lockfile to #{file}\"\n          definition.write_lock(file, false)\n        end\n\n        Bundler::CLI::Common.output_cooldown_skipped_summary(definition)\n      end\n\n      Bundler.ui.output_stream = previous_output_stream\n    end\n\n    private\n\n    def check_for_conflicting_options\n      if options[\"normalize-platforms\"] && options[\"add-platform\"].any?\n        raise InvalidOption, \"--normalize-platforms can't be used with --add-platform\"\n      end\n\n      if options[\"normalize-platforms\"] && options[\"remove-platform\"].any?\n        raise InvalidOption, \"--normalize-platforms can't be used with --remove-platform\"\n      end\n    end\n  end\nend\n","sourceCodeStart":76,"sourceCodeEnd":103,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli/lock.rb#L76-L103","documentation":"Error \"--normalize-platforms can't be used with --add-platform\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli/lock.rb:94 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"}