summaryrefslogtreecommitdiff
path: root/lib/bundler/runtime.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/runtime.rb')
-rw-r--r--lib/bundler/runtime.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb
index 45f445aec1..6ccb0d89b5 100644
--- a/lib/bundler/runtime.rb
+++ b/lib/bundler/runtime.rb
@@ -24,7 +24,7 @@ module Bundler
# Activate the specs
load_paths = specs.map do |spec|
unless spec.loaded_from
- raise GemNotFound, "#{spec.full_name} is missing. Run `bundle` to get it."
+ raise GemNotFound, "#{spec.full_name} is missing. Run `bundle install` to get it."
end
if (activated_spec = Bundler.rubygems.loaded_specs(spec.name)) && activated_spec.version != spec.version
@@ -127,6 +127,7 @@ module Bundler
definition_method :requires
def lock(opts = {})
+ return if @definition.nothing_changed? && !@definition.unlocking?
@definition.lock(Bundler.default_lockfile, opts[:preserve_unknown_sections])
end