Skip to content

Update CocoaPods for alpha13. #835

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

Merged
merged 2 commits into from
Jun 10, 2020
Merged

Update CocoaPods for alpha13. #835

merged 2 commits into from
Jun 10, 2020

Conversation

MrMage
Copy link
Collaborator

@MrMage MrMage commented Jun 10, 2020

Also updates the script to run CocoaPods synchronously, and to allow users to use any patch version they please.

Not pushed to CocoaPods yet because of dependency mismatches.

@Jake-Prickett, please push the required dependencies (NIOSSL 2.7.4 in particular) and make sure that NIOSSL 2.7.4 depends on NIO 2.18. Afterwards, feel free to push gRPC alpha 13 as well or ping me to do it :-)

I also volunteer to be added as a maintainer for the NIO Pods, to let me take care of this myself the next time :-)

@MrMage MrMage requested a review from glbrntt June 10, 2020 09:14
@glbrntt
Copy link
Collaborator

glbrntt commented Jun 10, 2020

@Jake-Prickett please hold off on doing the pod releases for now: I'm just updating NIOs build_podspec.sh scripts to not depend on exact versions

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jun 10, 2020
@@ -172,6 +173,8 @@ def get_grpc_deps():
for obj in data['object']['pins']:
package = process_package(obj['package'])
version = obj['state']['version']
# Strip the "patch" part of the version, as we want to allow users to use any patch version.
version = '.'.join(version.split('.')[0:2])
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you think we should actually just take the exact version as a minimum requirement and then bound the major version? It's a closer reflection of the Package.swift.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The current code generates e.g. pod SwiftNIO, '~> 2.18', which according to my understanding should mean "any version of SwiftNIO >= 2.18 and < 3". Is that not what we want?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We could depend on a non-zero patch version in Package.swift, which would be lost here. It's probably not an issue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right, updated. @glbrntt PTAL

Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

awesome, thanks @MrMage!

@glbrntt glbrntt merged commit 905c30d into master Jun 10, 2020
@glbrntt glbrntt deleted the pod-13 branch June 10, 2020 16:00
@glbrntt
Copy link
Collaborator

glbrntt commented Jun 10, 2020

@Jake-Prickett first of all, sorry for all the requests today...! Unfortunately I have a few more...

I've updated the NIO podspec scripts; when you get a chance could you release podspecs for:

  • NIO SSL 2.7.4, and
  • NIO HTTP2 1.12.2

I'll also tag an alpha-14 release of gRPC; could you then update the podspec for gRPC for alpha-14 once I've done that?

@Jake-Prickett
Copy link
Contributor

I can do that today no problem! Thanks for doing that in the NIO repos!

@glbrntt
Copy link
Collaborator

glbrntt commented Jun 10, 2020

Awesome, thank you so much @Jake-Prickett! I've just submitted #838 to update the podspec (but not push them). I'll tag a release once that's been merged. Hopefully it should then just be over to you :D

@glbrntt
Copy link
Collaborator

glbrntt commented Jun 10, 2020

Okay, alpha-14 tagged, over to you @Jake-Prickett

@Jake-Prickett
Copy link
Contributor

Jake-Prickett commented Jun 10, 2020

@glbrntt Pushed and good to go! 👍

@glbrntt
Copy link
Collaborator

glbrntt commented Jun 11, 2020

Thanks again @Jake-Prickett!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants