Bazel:如何覆盖 git_repository 提交以进行集成测试?

Bazel: how to override git_repository commit for integration testing?

我想为 rules_k8s that allows an updated commit SHA to be passed in at the command-line to override the default commit hash of rules_docker in the WORKSPACE 添加一个集成测试。动机是进行 CI 测试,检查 rules_docker 是否包含影响 rules_k8s.

的回归

对于 rules_scala,我做了类似的事情 via --override_repository,但这似乎比本案例所需的要复杂。

我认为目前这不可能,您介意在 https://github.com/bazelbuild/bazel 提出功能请求吗?