ruby/rubygems · error · GemNotFound
Could not find gem '#{gem_name}'.
Error message
Could not find gem '#{gem_name}'. What it means
Error "Could not find gem '#{gem_name}'." thrown in ruby/rubygems.
Source
Thrown at lib/bundler/cli/outdated.rb:37
end
# the patch level options imply strict is also true. It wouldn't make
# sense otherwise.
@strict = options["filter-strict"] || Bundler::CLI::Common.patch_level_options(options).any?
end
def run
check_for_deployment_mode!
Bundler::CLI::Common.validate_cooldown!(options[:cooldown])
Bundler.settings.set_command_option_if_given :cooldown, options[:cooldown]
Bundler.definition.validate_runtime!
current_specs = Bundler.ui.silence { Bundler.definition.resolve }
gems.each do |gem_name|
if current_specs[gem_name].empty?
raise GemNotFound, "Could not find gem '#{gem_name}'."
end
end
current_dependencies = Bundler.ui.silence do
Bundler.load.dependencies.map {|dep| [dep.name, dep] }.to_h
end
definition = if gems.empty? && sources.empty?
# We're doing a full update
Bundler.definition(true)
else
Bundler.definition(gems: gems, sources: sources)
end
Bundler::CLI::Common.configure_gem_version_promoter(
Bundler.definition,
options.merge(strict: @strict)
)View on GitHub (pinned to 86cbb817a3)
When it happens
Trigger: Thrown at lib/bundler/cli/outdated.rb:37 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruby/rubygems@86cbb817a3 (2026-08-23).
Data as JSON: /api/errors/af56d77e48ca8f57.
Report an issue: GitHub.