Adds support for passing in related podspecs for validation#8536
Adds support for passing in related podspecs for validation#8536
Conversation
d467155 to
af65a75
Compare
| #-------------------------------------------------------------------------# | ||
|
|
||
| # @!group Configuration | ||
| # @!group Configuration |
There was a problem hiding this comment.
This was an unknown invisible char - I switched it to a space
|
Why would |
|
You wouldn't be able to push to a non-trunk specs repo you owned without this. You can't ship x Podspecs at once, and there's no way to skip validation. So this allows At that point not having it in lib lint just seemed like an odd edge case. |
|
But shouldn't |
How is the information passed through these parameters reconciled with the dependency list declared in the podspec? In other words, if I pass this parameter and I successfully publish a podspec but I don't have It seems to me a way to handle this is to write out support for a |
|
Hrm, yeah, just had a 2nd thought about that - will remove it from |
| [dacaiguoguogmail](https://github.com/dacaiguoguogmail) | ||
| [#8470](https://github.com/CocoaPods/CocoaPods/pull/8470) | ||
|
|
||
| * Adds support for referring to other podspecs during validation |
There was a problem hiding this comment.
needs two trailing spaces instead of 1
| local = local? | ||
| urls = source_urls | ||
|
|
||
| additional_podspec_pods = Dir.glob(external_podspecs || '') |
There was a problem hiding this comment.
Should this be external_podspecs ? Dir.glob(external_podspecs) : []?
There was a problem hiding this comment.
I originally did this, but it felt a bit weird re-defining the same variable to be a different type. I'm happy to change this if it's a blocker though 👍
There was a problem hiding this comment.
doh - forgot to push this, hah
There was a problem hiding this comment.
dont care so much about the variable name, but I dont like having a call to Dir.glob('')
There was a problem hiding this comment.
Ah, that makes sense - will fix
|
|
||
| podfile = @validator.send(:podfile_from_spec, :ios, '5.0') | ||
|
|
||
| puts podfile.target_definitions['App'].dependencies |
|
|
||
| podfile = @validator.send(:podfile_from_spec, :ios, '5.0') | ||
|
|
||
| puts podfile.target_definitions['App'].dependencies |
af65a75 to
c42a26b
Compare
| [#8461](https://github.com/CocoaPods/CocoaPods/issues/8461) | ||
|
|
||
| * Set the path of development pod groups to root directory of the Pod | ||
| * Adds support for referring to other podspecs during validation |
There was a problem hiding this comment.
nit: needs to move to updated master section after 1.7.0.beta.1
… podspecs without going through a podspec source
… lib lint, spec lint and repo push
6317f87 to
ad22d08
Compare
| [#8461](https://github.com/CocoaPods/CocoaPods/issues/8461) | ||
|
|
||
| * Set the path of development pod groups to root directory of the Pod | ||
| * Set the path of development pod groups to root directory of the Pod |
There was a problem hiding this comment.
Yep, it fixes that line (should also be two spaces)
|
|
||
| additional_path_pods.each do |podspec_path| | ||
| podspec_name = File.basename(podspec_path, '.*') | ||
| pod podspec_name, :path => File.dirname(podspec_path), :inhibit_warnings => false |
There was a problem hiding this comment.
why would we not inhibit warnings? Those are external pods not currently being validated. I would expect to remove :inhibit_warnings here and below.
ad22d08 to
6f03a82
Compare
| coconut_dep = podfile.target_definitions['App'].dependencies[1] | ||
| coconut_dep.name.should == 'CoconutLib' | ||
| coconut_dep.local?.should.nil? | ||
| coconut_dep.external?.should.not.nil? |
|
|
||
| coconut_dep = podfile.target_definitions['App'].dependencies[1] | ||
| coconut_dep.name.should == 'CoconutLib' | ||
| coconut_dep.local?.should.not.nil? |
There was a problem hiding this comment.
Nope, they're strings, this is fine 👍
4234a28 to
67d5997
Compare
67d5997 to
fa0379b
Compare
…ommand (#14579) * Add new cocoapods 1.7 parameters of the lint command Source [PR 8536](CocoaPods/CocoaPods#8536) * Add cocoapods version hint
…ommand (fastlane#14579) * Add new cocoapods 1.7 parameters of the lint command Source [PR 8536](CocoaPods/CocoaPods#8536) * Add cocoapods version hint
The React Native team are starting to do more work with CocoaPods facebook/react-native#23559 , and I'd like to get them using
pod lib linton CI. To do that though, they would need the ability to say "Lint this Podspec, but grab all these other ones from the local repo" - and they have some dependencies which we're currently grabbing from trunk.This adds support in the validator to declare local (or remote) podspecs as a part of your linting setup across
pod lib lint,pod spec lintand the validation aspect ofpod repo push.