mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
0e01ad881a
commit
97de4c02ad
Notes:
git
2021-08-31 19:07:19 +09:00
5 changed files with 1 additions and 19 deletions
|
@ -15,7 +15,7 @@ module Bundler
|
||||||
definition.validate_runtime!
|
definition.validate_runtime!
|
||||||
|
|
||||||
begin
|
begin
|
||||||
definition.resolve_only_locally!
|
definition.resolve_with_cache!
|
||||||
not_installed = definition.missing_specs
|
not_installed = definition.missing_specs
|
||||||
rescue GemNotFound, VersionConflict
|
rescue GemNotFound, VersionConflict
|
||||||
Bundler.ui.error "Bundler can't satisfy your Gemfile's dependencies."
|
Bundler.ui.error "Bundler can't satisfy your Gemfile's dependencies."
|
||||||
|
|
|
@ -166,12 +166,6 @@ module Bundler
|
||||||
@multisource_allowed
|
@multisource_allowed
|
||||||
end
|
end
|
||||||
|
|
||||||
def resolve_only_locally!
|
|
||||||
@remote = false
|
|
||||||
sources.local_only!
|
|
||||||
resolve
|
|
||||||
end
|
|
||||||
|
|
||||||
def resolve_with_cache!
|
def resolve_with_cache!
|
||||||
sources.cached!
|
sources.cached!
|
||||||
resolve
|
resolve
|
||||||
|
|
|
@ -36,8 +36,6 @@ module Bundler
|
||||||
|
|
||||||
def local!; end
|
def local!; end
|
||||||
|
|
||||||
def local_only!; end
|
|
||||||
|
|
||||||
def cached!; end
|
def cached!; end
|
||||||
|
|
||||||
def remote!; end
|
def remote!; end
|
||||||
|
|
|
@ -26,12 +26,6 @@ module Bundler
|
||||||
Array(options["remotes"]).reverse_each {|r| add_remote(r) }
|
Array(options["remotes"]).reverse_each {|r| add_remote(r) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def local_only!
|
|
||||||
@specs = nil
|
|
||||||
@allow_local = true
|
|
||||||
@allow_remote = false
|
|
||||||
end
|
|
||||||
|
|
||||||
def local!
|
def local!
|
||||||
return if @allow_local
|
return if @allow_local
|
||||||
|
|
||||||
|
|
|
@ -136,10 +136,6 @@ module Bundler
|
||||||
different_sources?(lock_sources, replacement_sources)
|
different_sources?(lock_sources, replacement_sources)
|
||||||
end
|
end
|
||||||
|
|
||||||
def local_only!
|
|
||||||
all_sources.each(&:local_only!)
|
|
||||||
end
|
|
||||||
|
|
||||||
def cached!
|
def cached!
|
||||||
all_sources.each(&:cached!)
|
all_sources.each(&:cached!)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue