This conversation from four years ago suggests that graph trimming with
unused_inputs_list attribute to
ctx.actions.run() hurts remote caching as the cache key is constructed from all declared inputs instead of only used ones. I wonder if it is still the case and what can possibly be done to make it work.
C++ compilation rules use unused_inputs_list to remove unused headers from the list of compilation action inputs and it seriously harms remote caching efficiency. Looking for a workaround.
Any thoughts?
Konstantin