{"record":{"id":"c5dc10b22a206c6d","repo":"ruby/rubygems","slug":"your-bundle-is-locked-to-locked-gem-from-lock","errorCode":null,"errorMessage":"Your bundle is locked to #{locked_gem} from #{locked_gem.source}, but that version can no longer be found in that source. That means either the author of #{locked_gem} has removed it, or you no longer have access to that source. You'll need to update your bundle to a version other than #{locked_gem} that hasn't been removed, or check your credentials and access rights for #{locked_gem.source}, in order to install.","messagePattern":"Your bundle is locked to #(.+?) from #(.+?), but that version can no longer be found in that source\\. That means either the author of #(.+?) has removed it, or you no longer have access to that source\\. You'll need to update your bundle to a version other than #(.+?) that hasn't been removed, or check your credentials and access rights for #(.+?), in order to install\\.","errorType":"exception","errorClass":"GemNotFound","httpStatus":null,"severity":"error","filePath":"lib/bundler/definition.rb","lineNumber":732,"sourceCode":"      if missing_specs.any?\n        missing_specs.each do |s|\n          locked_gem = @locked_specs[s.name].last\n          next if locked_gem.nil? || locked_gem.version != s.version || sources.local_mode?\n\n          message = if sources.implicit_global_source?\n            \"Because your Gemfile specifies no global remote source, your bundle is locked to \" \\\n            \"#{locked_gem} from #{locked_gem.source}. However, #{locked_gem} is not installed. You'll \" \\\n            \"need to either add a global remote source to your Gemfile or make sure #{locked_gem} is \" \\\n            \"available locally before rerunning Bundler.\"\n          else\n            \"Your bundle is locked to #{locked_gem} from #{locked_gem.source}, but that version can \" \\\n            \"no longer be found in that source. That means either the author of #{locked_gem} has removed it, \" \\\n            \"or you no longer have access to that source. You'll need to update your bundle to a version other \" \\\n            \"than #{locked_gem} that hasn't been removed, or check your credentials and access rights for \" \\\n            \"#{locked_gem.source}, in order to install.\"\n          end\n\n          raise GemNotFound, message\n        end\n\n        missing_specs_list = missing_specs.group_by(&:source).map do |source, missing_specs_for_source|\n          \"#{missing_specs_for_source.map(&:full_name).join(\", \")} in #{source}\"\n        end\n\n        raise GemNotFound, \"Could not find #{missing_specs_list.join(\" nor \")}\"\n      end\n\n      partially_missing_specs = resolve.partially_missing_specs\n\n      if partially_missing_specs.any? && !sources.local_mode?\n        Bundler.ui.warn \"Some locked specs have possibly been yanked (#{partially_missing_specs.map(&:full_name).join(\", \")}). Ignoring them...\"\n\n        resolve.delete(partially_missing_specs)\n      end\n\n      incomplete_specs = resolve.incomplete_specs","sourceCodeStart":714,"sourceCodeEnd":750,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/definition.rb#L714-L750","documentation":"Error \"Your bundle is locked to #{locked_gem} from #{locked_gem.source}, but that version can no longer be found in that source. That means either the author of #{locked_gem} has removed it, or you no longer have access to that source. You'll need to update your bundle to a version other than #{locked_gem} that hasn't been removed, or check your credentials and access rights for #{locked_gem.source}, in order to install.\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/definition.rb:732 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"}