Inhibit warnings for all dependencies during validation except for the one being validated

parent 377d9cdf
......@@ -12,7 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
* None.
* Inhibit warnings for all dependencies during validation except for the one being validated
[Dimitris Koutsogiorgas](https://github.com/dnkoutso)
[#7434](https://github.com/CocoaPods/CocoaPods/issues/7434)
## 1.5.0.beta.1 (2018-03-23)
......
......@@ -808,20 +808,22 @@ module Pod
urls = source_urls
Pod::Podfile.new do
install! 'cocoapods', :deterministic_uuids => false
# By default inhibit warnings for all pods, except the one being validated.
inhibit_all_warnings!
urls.each { |u| source(u) }
target 'App' do
use_frameworks!(use_frameworks)
platform(platform_name, deployment_target)
if local
pod name, :path => podspec.dirname.to_s
pod name, :path => podspec.dirname.to_s, :inhibit_warnings => false
else
pod name, :podspec => podspec.to_s
pod name, :podspec => podspec.to_s, :inhibit_warnings => false
end
test_spec_names.each do |test_spec_name|
if local
pod test_spec_name, :path => podspec.dirname.to_s
pod test_spec_name, :path => podspec.dirname.to_s, :inhibit_warnings => false
else
pod test_spec_name, :podspec => podspec.to_s
pod test_spec_name, :podspec => podspec.to_s, :inhibit_warnings => false
end
end
end
......
......@@ -395,6 +395,13 @@ module Pod
(!!target_definition.uses_frameworks?).should == false
# rubocop:enable Style/DoubleNegation
end
it 'inhibits warnings for all pods except the one being validated' do
podfile = @validator.send(:podfile_from_spec, :ios, '5.0')
target_definition = podfile.target_definitions['App']
target_definition.should.not.inhibits_warnings_for_pod?('JSONKit')
target_definition.should.inhibits_warnings_for_pod?('NotJSONKit')
end
end
it 'empties sources when no dependencies' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment