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 small bug where product references have a trailing dot #757

Merged
merged 2 commits into from May 5, 2020
Merged

Fix small bug where product references have a trailing dot #757

merged 2 commits into from May 5, 2020

Conversation

ghost
Copy link

@ghost ghost commented May 4, 2020

This fixes a small bug with the new_product_ref_for_target helper where it didn't create the right path for command line tools because it always adds a . to the end, assuming an extension will be after it, but command line tools don't have extensions.

I added a pair of new tests to ensure the change is properly handled for both targets with extensions and those without.

Command line tools are extension-less however the code for making the
ref always put a dot for the extension no matter what. This small fix
ensures the dot is only added if an extension is found, that way those
tools don't have the extra dot that isn't actually part of the target's
output name.
@dnkoutso
Copy link
Contributor

dnkoutso commented May 4, 2020

Can you add a bug fix change log please?

@dnkoutso
Copy link
Contributor

dnkoutso commented May 4, 2020

Thanks!

@ghost
Copy link
Author

ghost commented May 5, 2020

@dnkoutso Added an entry.

@dnkoutso dnkoutso merged commit 1112f44 into CocoaPods:master May 5, 2020
@ghost ghost deleted the fix-product-references-without-extensions branch May 5, 2020 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant