treewide: add aliases for third_party dependencies
With bzlmod it is currently not possible to access other third_party libraries. By adding an alias inside the root module we can work around this with a fairly moderate hack. We do have a folder and BUILD file for every dependency anyway, so this isn't that bad.
Change-Id: I472194f590fd4c4aa8ba304af70dd8b92ecc5c1e
Reviewed-on: https://review.monogon.dev/c/monogon/+/3231
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/third_party/go/patches/pganalyze-add-cdeps.patch b/third_party/go/patches/pganalyze-add-cdeps.patch
index 6af9192..a73adff 100644
--- a/third_party/go/patches/pganalyze-add-cdeps.patch
+++ b/third_party/go/patches/pganalyze-add-cdeps.patch
@@ -5,7 +5,7 @@
],
cgo = True,
+ cdeps = [
-+ "@libpg_query//:libpg_query",
++ "@@//third_party/libpg_query",
+ ],
clinkopts = [""],
copts = ["-Iparser/include -g -fstack-protector -std=gnu99 -Wno-deprecated-non-prototype -Wno-unknown-warning-option"],