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
Exclude test resource and framework paths from aggregate targets #7000
Exclude test resource and framework paths from aggregate targets #7000
Conversation
253c295
to
7a5bd48
Compare
@@ -200,56 +200,59 @@ def supported_test_types | |||
# @return [Array<Hash{Symbol => [String]}>] The vendored and non vendored framework paths | |||
# this target depends upon. | |||
# | |||
def framework_paths | |||
@framework_paths ||= begin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed the @framework_paths ||= begin
this is why the diff looks weird.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Easier to review with https://github.com/CocoaPods/CocoaPods/pull/7000/files?w=1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of removing the caching? This is kinda expensive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So now we are parameterized whether we return paths including the ones from tests or not.
I can actually cache it where the key includes the boolean if you'd like. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cache is now added back and it depends on the parameter.
7a5bd48
to
79daf74
Compare
lib/cocoapods/target/pod_target.rb
Outdated
:input_path => build_product_path('${BUILT_PRODUCTS_DIR}'), | ||
:output_path => "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/#{product_name}" } | ||
def framework_paths(include_test_framework_paths = true) | ||
accessors = file_accessors.flat_map |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the flat_map
here with no block for?
3269c95
to
710dcfe
Compare
710dcfe
to
060048f
Compare
060048f
to
7408faf
Compare
7408faf
to
4a6dad4
Compare
Just amended the commit message to be more accurate. No code changes on the last push. |
4a6dad4
to
000ca1f
Compare
All green! |
No description provided.