{"record":{"id":"42ff51ba4645645b","repo":"ruby/rubygems","slug":"41","errorCode":"41","errorMessage":"Bundler found incorrect dependencies in the lockfile for #{spec.full_name}","messagePattern":"Bundler found incorrect dependencies in the lockfile for #(.+?)","errorType":"exception","errorClass":"Bundler::IncorrectLockfileDependencies","httpStatus":null,"severity":"error","filePath":"lib/bundler/lazy_specification.rb","lineNumber":273,"sourceCode":"        search.locked_platform = platform if search.instance_of?(RemoteSpecification) || search.instance_of?(EndpointSpecification)\n      end\n      search\n    end\n\n    # Validate dependencies of this locked spec are consistent with dependencies\n    # of the actual spec that was materialized.\n    #\n    # Note that unless we are in strict mode (which we set during installation)\n    # we don't validate dependencies of locally installed gems but\n    # accept what's in the lockfile instead for performance, since loading\n    # dependencies of locally installed gems would mean evaluating all gemspecs,\n    # which would affect `bundler/setup` performance.\n    def validate_dependencies(spec)\n      if !@materialization_options[:strict] && spec.is_a?(StubSpecification)\n        spec.dependencies = dependencies\n      else\n        if !source.is_a?(Source::Path) && spec.runtime_dependencies.sort != dependencies.sort\n          raise IncorrectLockfileDependencies.new(self, spec.runtime_dependencies, dependencies)\n        end\n      end\n    end\n  end\nend\n","sourceCodeStart":255,"sourceCodeEnd":279,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/lazy_specification.rb#L255-L279","documentation":"Error \"Bundler found incorrect dependencies in the lockfile for #{spec.full_name}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/lazy_specification.rb:273 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"}