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/libseccomp.patch b/third_party/go/patches/libseccomp.patch
index 27de7d5..6779c5d 100644
--- a/third_party/go/patches/libseccomp.patch
+++ b/third_party/go/patches/libseccomp.patch
@@ -5,7 +5,7 @@
"seccomp_internal.go",
],
+ cdeps = [
-+ "@seccomp",
++ "@@//third_party/seccomp",
+ ],
cgo = True,
importpath = "github.com/seccomp/libseccomp-golang",
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"],
diff --git a/third_party/go/patches/runc-add-cdeps.patch b/third_party/go/patches/runc-add-cdeps.patch
index fd15c15..e980f59 100644
--- a/third_party/go/patches/runc-add-cdeps.patch
+++ b/third_party/go/patches/runc-add-cdeps.patch
@@ -4,7 +4,7 @@
"enosys_unsupported.go",
],
cgo = True,
-+ cdeps = ["@seccomp"],
++ cdeps = ["@@//third_party/seccomp"],
importpath = "github.com/opencontainers/runc/libcontainer/seccomp/patchbpf",
visibility = ["//visibility:public"],
deps = select({