-
Notifications
You must be signed in to change notification settings - Fork 205
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
sh_cmd does not inject provenance into generated shell script #3009
Comments
As discussed offline, there is a convention that child rules should follow that can make following this trail easier, where the target name would be Another requested feature is to query all targets of a given kind e.g.
It would be good to record that we're currently evaluating We'd need some new syntax or something though. It's only by convention that we know the above call will produce |
This is actually the thinking behind the stacktrace pull request #2896 |
#2896 was closed as stall :/ |
Using sh_cmd does not indicate what rule (possibly derivative) generated the shell script. This can make finding the origin of such a shell script difficult in a code base with layers of build definitions.
It would be ideal to have comments at the top of the shell script providing a stack (even partial) indicating which build rules to find to edit this command in this shell script.
Example
Specifically
The invocation by sh_cmd itself is not as insightful but might be useful if the definition of that rule needs to be changed as well (much rarer).
This could have the side-effect of clearly indicating these files as generated as well since they don't seem to be checked for hashing in plz-out and are simply assumed correct if the timestamp is more recent than the sources (which is incorrect if making local edits to these files).
Please let me know what other information would be useful, but I'll try to put together a pull request when I get time to show my proposed solution as well.
The text was updated successfully, but these errors were encountered: