Skip to content

Workaround Carthage Protobuf parallel install issue#5345

Merged
paulb777 merged 3 commits into
masterfrom
pb-carthage-protobuf
Apr 14, 2020
Merged

Workaround Carthage Protobuf parallel install issue#5345
paulb777 merged 3 commits into
masterfrom
pb-carthage-protobuf

Conversation

@paulb777
Copy link
Copy Markdown
Member

@paulb777 paulb777 commented Apr 11, 2020

Fix #5276. Carthage can fail to install if two binary installs include the same framework. This PR factors Protobuf.framework out of the several bundles it was included in into a single Carthage bundle.

The instructions are updated to describe when the new FirebaseProtobufBinary.json must now be included in the Cartfile.

@paulb777 paulb777 marked this pull request as draft April 11, 2020 20:58
@google-oss-bot google-oss-bot added the zip-builder Tools related to building the zip file. label Apr 11, 2020
@paulb777 paulb777 marked this pull request as ready for review April 12, 2020 14:07
@paulb777 paulb777 requested a review from ryanwilson April 14, 2020 13:54
Copy link
Copy Markdown
Member

@ryanwilson ryanwilson left a comment

Choose a reason for hiding this comment

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

Code LGTM. Are there any concerns about folks updating and things breaking for them? Although realistically they may just leave the existing framework in there and override the old ones... that could be a separate issue seen if Protobuf changes.

}

/// Factor Protobuf into a separate Carthage distribution to avoid Carthage install issues
/// trying to install the same framework from multiple bundles(#5276).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit: space after bundles

@paulb777
Copy link
Copy Markdown
Member Author

Breakage is definitely a concern but the current breakage described in #5276 seems worse. Mitigating the risk with documentation. And at least Protobuf is reasonably stable so is unlikely to break if people continue to use the old one and don't update to the new one.

@paulb777 paulb777 merged commit a60a0e2 into master Apr 14, 2020
@paulb777 paulb777 deleted the pb-carthage-protobuf branch April 14, 2020 15:02
@firebase firebase locked and limited conversation to collaborators May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: core cla: yes zip-builder Tools related to building the zip file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple/Duplicate Protobuf Dependencies of Carthage Binary Firebase Components

4 participants