-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
CocoaPods explodes with PDF license files #2407
Comments
The only thing I think we should be doing here is to guard against not being able to read the license file and print an error. As for the solution in this case, you can inline the license text in the spec or otherwise maybe add a plain text copy of the PDF to the repo? |
@alloy 👍 That attribute is definitely intended only for simple text files. |
Not sure it needs to be an error. We just should rescue exceptions when creating the metadata files. |
It should definitely be an error to inform the user that the acknowledgements file is incorrect, and in this case the podspec itself is incorrect. |
How is the podspec incorrect? |
It is specifying a The purpose of this attribute in the specification is to allow to access the contents of the text of the license via the license file directly in order to generate the acknowledgment files. The docs could be more precise about simple text files to clear any doubt. |
So should the linter check that the file is a plain-text file? |
I would check for markdown or txt extension |
👍 The decision to support only those extensions is based on the following reasons:
|
Thanks, wasn't sure if it wasn't supported or it was a bug. 👍 |
It would be better to use e.g. the |
@alloy I didn't know about file |
Closes CocoaPods/CocoaPods#2407 For now, only files with no extension or .txt, .md, or.markdown extensions are allowed
Podspec
Podfile
Error
The text was updated successfully, but these errors were encountered: