This is a lightly modified fork of the internal tool, with updates to e.g. use bazel instead of blaze, and use the standard flags package, etc. I confirmed that it works on examples like https://github.com/bazelbuild/bazel/issues/4990.
One open question here is test coverage. The internal implementation has a suite of e2e integration tests that can be run manually. They set up a tiny bazel workspace, do a build that produces an add_dep error, and confirm that running the provided command fixes the build. I could look at externalizing those. It would be nicer to have something that could run on CI.
See https://github.com/bazelbuild/bazel/issues/4990
This is a lightly modified fork of the internal tool, with updates to e.g. use
bazel
instead ofblaze
, and use the standard flags package, etc. I confirmed that it works on examples like https://github.com/bazelbuild/bazel/issues/4990.One open question here is test coverage. The internal implementation has a suite of e2e integration tests that can be run manually. They set up a tiny bazel workspace, do a build that produces an add_dep error, and confirm that running the provided command fixes the build. I could look at externalizing those. It would be nicer to have something that could run on CI.