We're using the remote cache (--spawn_strategy=remote), and we are having to do some fine-tuning in order to turn off the cache for certain actions. For example, when we generate tar files, we don't want to use the remote cache, because (a) building tar files locally is just as fast as downloading them, and (b) some of our tar files can be really enormous.
So I'd like to have our .bazelrc files specify a different strategy for some actions, e.g. --strategy=PackageTar=standalone.
Here's the tricky part: In order to override the strategy, you need to know the mnemonic. E.g. for the "pkg_tar" rule, the relevant action has the mnemonic "PackageTar". I found that in the bazel source. Some others are quite a bit trickier to figure out.
Is there any way I can get bazel to tell me the mnemonics of the actions it is executing? I looked into a variety of options, such as --profile, --explain, --verbose_explanations, --subcommands, but couldn't figure out a way.
Thanks! - Mike Morearty