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
pod spec lint gives unclear error message when https://www.github.com/repo/project.git format is given for source URL #2029
Comments
I think that shouldn't give a warning at all. |
If you browse to a github repo using https and the www prefix, GitHub will forward you to the correct URL sans prefix. I think it is okay to be strict here because this is a one second fix for a developer. The tool should just be clear about the expected format. |
@alloy any opinion on this? |
I think that in this case it makes sense to also lint the use of a subdomain on GitHub, unless there are other valid subdomains, such as |
There's already a special case for BTW, I can't actually reproduce the OP's warning with CocoaPods 0.31.1 |
Seems to me that the current behaviour is actually that https://github.com/CocoaPods/Core/blob/master/lib/cocoapods-core/specification/linter.rb#L317 I would propose to extend this with |
@neonichu I think that link is no longer correct, but looking at |
Fixed the link. Will tackle this so that |
Repro steps:
Expected: a warning that "www" prefix is not required
Observed: This error message:
This could probably be a bit more clear.
The text was updated successfully, but these errors were encountered: