-
Notifications
You must be signed in to change notification settings - Fork 319
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
[AOSP-pick] Parameterize aspect at instantiation #7382
Conversation
for inc in include.split(","): | ||
# This is not a valid label, but can be passed to aspect when `directories: .` is set in the projectview | ||
if (inc == "//"): | ||
result = True | ||
break | ||
|
||
inc = Label(inc) | ||
if _get_repo_name(inc) == repo and _package_prefix_match(package, inc.package): | ||
result = True | ||
break |
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.
I personally prefer this implementation. But of course I'm biased here. I think we should either keep the original implementation or use the AOSP implementation.
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.
I think the AOSP implementation is better, because it doesn't try to use a comma-delimited string as a makeshift collection.
projectDefinition.projectIncludes().stream() | ||
.map(path -> "//" + path) | ||
.collect(joining(",")); |
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.
@odisseus you are right, they are dropping the comma separated collection. In this case I would suggest to drop all my changes and use the AOSP implementation.
0fba2f6
to
58a20fe
Compare
This is to unify the test and production flows and make manual testing from the command line tolerable. It should also make the aspect configuration visible in CitC snapshots and aspect builds easily reproducible in users' workspaces. Bug: 327638725 Test: BazelDependencyBuilderTest Change-Id: I4cf4b408097cecc7d324310d98c18ce36900468e AOSP: 2e116b56c18f3c50f832e759537321ed0ba6fb34
58a20fe
to
64c57c7
Compare
Cherry pick AOSP commit 2e116b56c18f3c50f832e759537321ed0ba6fb34.
This is to unify the test and production flows and make manual testing
from the command line tolerable.
It should also make the aspect configuration visible in CitC snapshots
and aspect builds easily reproducible in users' workspaces.
Bug: 327638725
Test: BazelDependencyBuilderTest
Change-Id: I4cf4b408097cecc7d324310d98c18ce36900468e
AOSP: 2e116b56c18f3c50f832e759537321ed0ba6fb34