I'm an experienced Bazel user, and I know what I'm looking for is a giant footgun, but I still want it. So I wonder maybe there's a good way of achieving this that I somehow missed in all these years.
I would like to pass some key value pair to an action without affecting the cache key of this action. I don't care if it's an environment variable, a file, or whatever. I'm pretty sure there's no built-in way for that in Bazel, but maybe there's some trick that could be exploited.
My use case is that I have a hermetic and reproducible dev environment with Nix, in which I declare all my tools. So I'd like to expose those tools to my Bazel actions, but do so in such a way that if the path to those tools is different across different machines, the action could reuse the remote cache.