-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Better warning message for which Swift version was used during validation #7131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -139,7 +143,7 @@ To install release candidates run `[sudo] gem install cocoapods --pre` | |||
|
|||
* Fix validation warnings when using --swift-version | |||
[Danielle Tomlinson](https://github.com/dantoml) | |||
[#6971](https://github.com/CocoaPods/CocoaPods/issue/6971) | |||
[#6971](https://github.com/CocoaPods/CocoaPods/pull/6971) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed link
@@ -99,6 +99,7 @@ def self.add_xctest_search_paths(target) | |||
# @return [void] | |||
# | |||
def self.add_swift_version(target, swift_version) | |||
raise 'Cannot empty Swift version to target.' if swift_version.nil? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just being defensive here :)
@@ -256,7 +256,7 @@ def validation_dir | |||
# @return [String] the SWIFT_VERSION to use for validation. | |||
# | |||
def swift_version | |||
return @swift_version if defined?(@swift_version) | |||
return @swift_version unless @swift_version.nil? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the regression fix. @swift_version
is always defined but it is nil
.
c7424eb
to
2ab6daa
Compare
58a5ba9
to
2ccd062
Compare
8adf860
to
546cfe7
Compare
Should go green. |
546cfe7
to
95b09ce
Compare
Looks like this will cause conflicts with #7109 |
That's OK whoever wins the race gets to resolve the conflict :) |
@@ -99,6 +99,7 @@ def self.add_xctest_search_paths(target) | |||
# @return [void] | |||
# | |||
def self.add_swift_version(target, swift_version) | |||
raise 'Cannot set empty Swift version to target.' if swift_version.nil? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blank?
might be what you are looking for here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
95b09ce
to
b8f4d6a
Compare
Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
endocrimes
paulb777
closes #7121, fixes regression from #6971 in CocoaPods 1.4.0.beta.1
/cc @thomasvl The validator will only output this message if the user has not provided a swift version via a parameter or via a
.swift-version
file.This is how it looks now: