mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
parent
931bcd1b63
commit
4205190cb2
Notes:
git
2022-10-18 07:33:45 +00:00
1 changed files with 1 additions and 12 deletions
|
@ -264,18 +264,7 @@ module Bundler
|
|||
next requirement unless search_for(requirement).empty?
|
||||
next unless requirement.current_platform?
|
||||
|
||||
if (base = @base[name]) && !base.empty?
|
||||
version = base.first.version
|
||||
message = "You have requested:\n" \
|
||||
" #{name} #{requirement.requirement}\n\n" \
|
||||
"The bundle currently has #{name} locked at #{version}.\n" \
|
||||
"Try running `bundle update #{name}`\n\n" \
|
||||
"If you are updating multiple gems in your Gemfile at once,\n" \
|
||||
"try passing them all to `bundle update`"
|
||||
else
|
||||
message = gem_not_found_message(name, requirement, source_for(name))
|
||||
end
|
||||
raise GemNotFound, message
|
||||
raise GemNotFound, gem_not_found_message(name, requirement, source_for(name))
|
||||
end.compact!
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue