-
Notifications
You must be signed in to change notification settings - Fork 5
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
Only attempt to install pods when linting strings if CP is found #136
Conversation
As we start removing CocoaPods from some of our projects, we can no longer assume pods exist locally to install. See wordpress-mobile/WordPress-iOS#23951 which prompted this change.
echo "--- :cocoapods: Setting up Pods" | ||
install_cocoapods | ||
if [[ -f Podfile.lock ]]; then | ||
install_cocoapods | ||
else | ||
echo "CocoaPods setup not detected. Skipping CocoaPods installation..." | ||
fi |
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.
I considered moving the header (--- :cocoapods:...
) in the if
too, but I thought it useful to show it in the logs even when the action is skipped. What do you think?
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.
Agreed 👍
echo "--- :cocoapods: Setting up Pods" | ||
install_cocoapods | ||
if [[ -f Podfile.lock ]]; then | ||
install_cocoapods | ||
else | ||
echo "CocoaPods setup not detected. Skipping CocoaPods installation..." | ||
fi |
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.
Agreed 👍
As we start removing CocoaPods from some of our projects, we can no longer assume pods exist locally to install.
See wordpress-mobile/WordPress-iOS#23951 which prompted this change.
Example in action: https://buildkite.com/automattic/wordpress-ios/builds/25292#01943fbf-a124-4d9e-910a-b1cb8871bfcb
CHANGELOG.md
if necessary.