Fix module name go.mod
For some reason the `go.mod` file had a different module name than the
gazelle configuration in the top-level BUILD file. This was causing
errors like this:
$ bazel run //tools/lint:run-ci
WARNING: Option 'ui' is deprecated
INFO: Invocation ID: ef22d642-8b07-4800-ae84-e77306429510
INFO: Analyzed target //tools/lint:run-ci (3 packages loaded, 267 targets configured).
INFO: Found 1 target...
INFO: Writing explanation of rebuilds to '/tmp/bazel_explain.log'
Target //tools/lint:run-ci up-to-date:
bazel-bin/tools/lint/run-ci
INFO: Elapsed time: 2.606s, Critical Path: 0.10s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
go: finding module for package github.com/frc971/971-Robot-Code/build_tests/go_greeter
go: finding module for package github.com/google/protobuf/examples/tutorial
go: found github.com/frc971/971-Robot-Code/build_tests/go_greeter in github.com/frc971/971-Robot-Code v0.0.0-20220205063523-4a2bc7adafd7
go: frc971.org/971-Robot-Code/build_tests imports
github.com/frc971/971-Robot-Code/build_tests/go_greeter: github.com/frc971/971-Robot-Code@v0.0.0-20220205063523-4a2bc7adafd7: parsing go.mod:
module declares its path as: frc971.org/971-Robot-Code
but was required as: github.com/frc971/971-Robot-Code
frc971.org/971-Robot-Code/build_tests imports
github.com/frc971/971-Robot-Code/build_tests/go_greeter: cannot find module providing package github.com/frc971/971-Robot-Code/build_tests/go_greeter
frc971.org/971-Robot-Code/third_party/protobuf/examples imports
github.com/google/protobuf/examples/tutorial: module github.com/google/protobuf@latest found (v3.19.4+incompatible), but does not contain package github.com/google/protobuf/examples/tutorial
This patch here brings them back in line. The messages are less
worrisome now.
$ bazel run //tools/lint:run-ci
WARNING: Option 'ui' is deprecated
INFO: Invocation ID: c5c0dd6d-62ae-481f-8649-3dce0a8e5950
INFO: Analyzed target //tools/lint:run-ci (3 packages loaded, 267 targets configured).
INFO: Found 1 target...
INFO: Writing explanation of rebuilds to '/tmp/bazel_explain.log'
Target //tools/lint:run-ci up-to-date:
bazel-bin/tools/lint/run-ci
INFO: Elapsed time: 3.129s, Critical Path: 0.12s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
go: finding module for package github.com/google/protobuf/examples/tutorial
github.com/frc971/971-Robot-Code/third_party/protobuf/examples imports
github.com/google/protobuf/examples/tutorial: module github.com/google/protobuf@latest found (v3.19.4+incompatible), but does not contain package github.com/google/protobuf/examples/tutorial
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I31c0fe2d3e6d83ae2ff5d613c6630195b459f8f8
diff --git a/go.mod b/go.mod
index 7c0e058..a05f6de 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module frc971.org/971-Robot-Code
+module github.com/frc971/971-Robot-Code
go 1.17