-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
refactor: add option for optimized runfiles collection #1781
base: main
Are you sure you want to change the base?
Conversation
else: | ||
files_runfiles.append(d) | ||
|
||
if len(files_runfiles) > 0: |
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.
See #1782 and drop it here as well if it lands
transitive_files_depsets = [sources] | ||
|
||
files_runfiles = [] | ||
for d in data_files: |
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.
See #1783 and apply it here as well if it lands
@@ -259,6 +259,16 @@ _ATTRS = { | |||
""", | |||
default = True, | |||
), | |||
"optimized_runfiles_collection": attr.bool( |
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.
How about "include legacy runfiles" and False
by default? Something to make it sound old/bad/deprecated...
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.
Perhaps... tho "legacy" doesn't quite describe it in my mind. It is an overbroad, defence-in-depth runfiles collection mode that some users may need to use if they are using deps from other rule sets or custom rules that don't define their runfiles correctly.
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 guess I mean to to highlight the "don't define their runfiles correctly" part of it...
82f73e0
to
174bbb9
Compare
Changes are visible to end-users: yes/no
Test plan