Skip to content
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

Update cocoapods and podspec script #1122

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Feb 1, 2021

Motivation:

The podspec script uses Package.resolved to determine dependencies for
the 'GRPC' module as well as version requirements. These version
requirements are wrong per se, but they are overly restrictire.
Additionally, while Package.resolved was previously correct, it no
longer takes into account dependencies resolved for non-product targets
(i.e. swift-argument-parser).

Modifications:

  • Build podspec dependency requirements from 'swift package dump-package'
  • Replace 'os.system' with 'subprocess.check_call'
  • Update pods

Result:

Pod dependency requirementments match Package.swift

Motivation:

The podspec script uses Package.resolved to determine dependencies for
the 'GRPC' module as well as version requirements. These version
requirements are wrong per se, but they are overly restrictire.
Additionally, while Package.resolved was previously correct, it no
longer takes into account dependencies resolved for non-product targets
(i.e. swift-argument-parser).

Modifications:

- Build podspec dependency requirements from 'swift package dump-package'
- Replace 'os.system' with 'subprocess.check_call'
- Update pods

Result:

Pod dependency requirementments match Package.swift
@glbrntt glbrntt added the semver/none No version bump required. label Feb 1, 2021
@glbrntt glbrntt requested a review from Lukasa February 1, 2021 13:46
@glbrntt glbrntt merged commit 6d40ee3 into grpc:main Feb 2, 2021
@glbrntt glbrntt deleted the gb-update-pods-script branch February 2, 2021 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants