Skip to content

Allow gRPC-C++ to pod install on Linux#26630

Closed
morganchen12 wants to merge 1 commit intogrpc:masterfrom
morganchen12:master
Closed

Allow gRPC-C++ to pod install on Linux#26630
morganchen12 wants to merge 1 commit intogrpc:masterfrom
morganchen12:master

Conversation

@morganchen12
Copy link
Copy Markdown
Contributor

Fixes firebase/quickstart-ios#1099. Builds still cannot be run on Linux since xcodebuild is not available, so messing up the headers is ok.

Copy link
Copy Markdown
Contributor

@jtattermusch jtattermusch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be missing the context, but why would you need to install gRPC C++ pod on Linux?
Also, you're mentioning that builds still can't run on linux, so I'm not sure what's the deployment model you're suggesting.

end

s.prepare_command = <<-END_OF_COMMAND
if [[ "$(uname)" == "Darwin" ]]; then
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why this is necessary and why it's the correct solution. Mind explaining in a bit more detail?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Firebase uses Cloud's repository gardener, which runs jobs on Linux kokoro to update dependencies on open-source repositories. The script we run uses CocoaPods to actually generate the dependency updates via pod update, which invokes pod install, which currently fails for gRPC-C++ due to differences in Linux and macOS sed and base64.

This PR skips the script portion of gRPC-CC++'s pod install on Linux systems to allow the installation to succeed.

Copy link
Copy Markdown
Contributor

@dennycd dennycd Aug 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @morganchen12 . we should probably avoid branching on specific platforms, and instead find out what's causing the sed errors and use a common denominator syntax that would work for both (Darwin/BSD sed & Linux/GNU sed) if possible. See some comparison here

Copy link
Copy Markdown
Contributor

@dennycd dennycd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@morganchen12
Copy link
Copy Markdown
Contributor Author

Closing in favor of #27300.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Firestore Auto-update not happening

4 participants