Use Bazel to tidy the Go module and fetch external dependencies.
bazel mod tidyThis ensures all Bazel targets in the repo are building correctly.
bazel build //...Gazelle scans your Go code and automatically generates or updates BUILD.bazel files.
bazel run //:gazelle✅ Re-run Gazelle whenever:
- You add or remove
.gofiles- You rename Go packages or files
- You change import paths
This ensures all Bazel targets in the repo are tested correctly.
bazel test //...