{"record":{"id":"dea5eb1fa9729471","repo":"ruby/rubygems","slug":"unresolved-dependency-found-during-sorting-dep","errorCode":null,"errorMessage":"Unresolved dependency found during sorting - #{dep} (requested by #{node.spec.full_name})","messagePattern":"Unresolved dependency found during sorting - #(.+?) \\(requested by #(.+?)\\)","errorType":"exception","errorClass":"Gem::DependencyError","httpStatus":null,"severity":"error","filePath":"lib/rubygems/request_set.rb","lineNumber":513,"sourceCode":"    end\n  end\n\n  def tsort_each_node(&block) # :nodoc:\n    @requests.each(&block)\n  end\n\n  def tsort_each_child(node) # :nodoc:\n    node.spec.dependencies.each do |dep|\n      next if dep.type == :development && !@development\n\n      match = @requests.find do |r|\n        dep.match?(r.spec.name, r.spec.version, r.spec.is_a?(Gem::Resolver::InstalledSpecification) || @prerelease)\n      end\n\n      unless match\n        next if dep.type == :development && @development_shallow\n        next if @soft_missing\n        raise Gem::DependencyError,\n              \"Unresolved dependency found during sorting - #{dep} (requested by #{node.spec.full_name})\"\n      end\n\n      yield match\n    end\n  end\nend\n\nrequire_relative \"request_set/gem_dependency_api\"\nrequire_relative \"request_set/lockfile\"\n","sourceCodeStart":495,"sourceCodeEnd":524,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/rubygems/request_set.rb#L495-L524","documentation":"Error \"Unresolved dependency found during sorting - #{dep} (requested by #{node.spec.full_name})\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/rubygems/request_set.rb:513 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add a source that provides the missing dependency shown in the message","Remove or relax the constraint pulling the unresolvable dependency"],"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"}