Tracking issue for the feature request proposed [here](https://github.com/bazelbuild/bazel/issues/4815#issuecomment-464419291).