Remove synthetic GOPATH and symlinks
As it turns out, `go mod tidy` complains about missing modules
but still properly generates go.mod, so it appears that we do
not need a GOPATH or symlinks except for non-IntelliJ IDE support.
We should standardize on IntelliJ and just get rid of this
workaround. Hendrik had trouble rebasing the shield revisions
(that have a lot of generated code) and it's likely a lot of
work to maintain this hack in the future.
See D305, D309
Test Plan:
Ran `scripts/gazelle.sh` after deleting all symlinks
and tested that `go mod tidy` properly restored the go.mod file
after modifying it manually.
X-Origin-Diff: phab/D311
GitOrigin-RevId: fe4bc491fca6fa072cff047185d7c18305564ea4
diff --git a/scripts/gazelle.sh b/scripts/gazelle.sh
index 970f6ba..f989625 100755
--- a/scripts/gazelle.sh
+++ b/scripts/gazelle.sh
@@ -2,8 +2,6 @@
# gazelle.sh regenerates BUILD.bazel files for Go source files.
set -euo pipefail
-scripts/symlink_generated_files.sh
-
-bazel run //:go mod tidy
+! bazel run //:go mod tidy
bazel run //:gazelle -- update
bazel run //:gazelle -- update-repos -from_file=go.mod -to_macro=repositories.bzl%go_repositories -prune=true
diff --git a/scripts/symlink_generated_files.sh b/scripts/symlink_generated_files.sh
deleted file mode 100755
index 5596efd..0000000
--- a/scripts/symlink_generated_files.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/bash
-
-create_symlinks() {
- local package=$1
-
- rm -rf "$package"
- ln -r -s "bazel-bin/gopath/src/git.monogon.dev/source/nexantic.git/$package" "$package"
-}
-
-create_symlinks core/generated