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

fix: support specs with platform-specific transitives #17

Merged
merged 2 commits into from
Oct 4, 2019

Conversation

mrackwitz
Copy link
Contributor

  • Tests written and linted ℹ︎
  • Documentation written ℹ︎
  • Commit history is tidy ℹ︎

What this does

This supports the case where the pod is not a direct dependency of any targets of the integration, which can happen for platform-specific transitives, when their platform is not used in any target. (e.g. PromiseKit/UIKit is iOS-specific and is a transitive of PromiseKit, but won't be included for a macOS-only integration.)

/c @arielorn

@mrackwitz mrackwitz requested a review from darscan October 3, 2019 18:30
@mrackwitz mrackwitz self-assigned this Oct 3, 2019
@@ -51,6 +51,7 @@ fixtureTest(
'CocoaPods’ integration spec install_new',
'cp-integration-install_new'
);
fixtureTest('Parse iina’s Podfile.lock', 'iina');
Copy link
Contributor

@darscan darscan Oct 3, 2019

Choose a reason for hiding this comment

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

Maybe the description should mention what is actually under test a little more? Something like:

'Unused platform specific transitives are excluded'

Copy link
Contributor

@darscan darscan left a comment

Choose a reason for hiding this comment

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

Approved pending better test case description

This supports the case where the pod is not a direct dependency of any targets of the integration, which can happen for platform-specific transitives, when their platform is not used in any target. (e.g. PromiseKit/UIKit is iOS-specific and is a transitive of PromiseKit, but won't be included for a macOS-only integration.)
@mrackwitz mrackwitz force-pushed the fix/platform-specifc-transitives branch from c30d33f to ce65397 Compare October 3, 2019 19:37
@mrackwitz mrackwitz requested a review from a team as a code owner October 3, 2019 19:37
@ghost ghost requested review from gitphill and miiila October 3, 2019 19:37
@mrackwitz mrackwitz merged commit 0d5af12 into master Oct 4, 2019
@mrackwitz mrackwitz deleted the fix/platform-specifc-transitives branch October 4, 2019 09:34
@snyksec
Copy link

snyksec commented Oct 4, 2019

🎉 This PR is included in version 2.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants