Import gazelle
This patch imports gazelle as a linter. It automatically generates
BUILD file entries for Go code and at the same time keeps BUILD files
formatted.
The `tools/lint:run-ci` target is set up to automatically add new Go
repositories as well.
I added a tool at `//tools/go:mirror_go_repos` that needs to be run
before anyone can merge code that uses third-party Go libraries.
Change-Id: I1fbf6761439d45893f5be88d294ccc3c567840ca
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
diff --git a/y2020/actors/BUILD b/y2020/actors/BUILD
index b2a5121..85d8882 100644
--- a/y2020/actors/BUILD
+++ b/y2020/actors/BUILD
@@ -86,15 +86,15 @@
],
target_compatible_with = ["@platforms//os:linux"],
deps = [
- "//aos/events:shm_event_loop",
"//aos:init",
+ "//aos/events:shm_event_loop",
"//frc971/autonomous:base_autonomous_actor",
"//frc971/control_loops:control_loops_fbs",
"//frc971/control_loops:profiled_subsystem_fbs",
"//y2020:constants",
"//y2020/control_loops/drivetrain:drivetrain_base",
+ "//y2020/control_loops/superstructure:superstructure_goal_fbs",
"//y2020/control_loops/superstructure/shooter:shooter_tuning_params_fbs",
"//y2020/control_loops/superstructure/shooter:shooter_tuning_readings_fbs",
- "//y2020/control_loops/superstructure:superstructure_goal_fbs",
],
)
diff --git a/y2020/control_loops/superstructure/BUILD b/y2020/control_loops/superstructure/BUILD
index 375e4b0..e5ff8dc 100644
--- a/y2020/control_loops/superstructure/BUILD
+++ b/y2020/control_loops/superstructure/BUILD
@@ -83,9 +83,9 @@
"//frc971/control_loops:control_loops_fbs",
"//frc971/control_loops/drivetrain:drivetrain_status_fbs",
"//y2020:constants",
+ "//y2020/control_loops/superstructure/hood:hood_encoder_zeroing_estimator",
"//y2020/control_loops/superstructure/shooter",
"//y2020/control_loops/superstructure/turret:aiming",
- "//y2020/control_loops/superstructure/hood:hood_encoder_zeroing_estimator",
],
)
diff --git a/y2020/control_loops/superstructure/hood/BUILD b/y2020/control_loops/superstructure/hood/BUILD
index 3035a55..437c67a 100644
--- a/y2020/control_loops/superstructure/hood/BUILD
+++ b/y2020/control_loops/superstructure/hood/BUILD
@@ -43,7 +43,7 @@
],
target_compatible_with = ["@platforms//os:linux"],
deps = [
- "//frc971/zeroing:zeroing",
+ "//frc971/zeroing",
"//y2020:constants",
],
)