From c92a92c655d9f9dd836c6fc3240517fe2db799a3 Mon Sep 17 00:00:00 2001 From: Alex McCarthy <19922103+CodingCanuck@users.noreply.github.com> Date: Tue, 29 Mar 2022 17:15:30 +0000 Subject: [PATCH] Add pyprotoc-plugin as a submodule Fixes https://github.com/3rdparty/eventuals/issues/276 --- .gitmodules | 4 ++++ WORKSPACE.bazel | 15 +++++++++++++++ submodules/pyprotoc-plugin | 1 + 3 files changed, 20 insertions(+) create mode 160000 submodules/pyprotoc-plugin diff --git a/.gitmodules b/.gitmodules index 9ae9b397..06c4c88b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,7 @@ path = submodules/dev-tools url = https://github.com/3rdparty/dev-tools.git branch = main +[submodule "submodules/pyprotoc-plugin"] + path = submodules/pyprotoc-plugin + url = https://github.com/reboot-dev/pyprotoc-plugin + branch = main diff --git a/WORKSPACE.bazel b/WORKSPACE.bazel index b17dd2ee..8cdaff9a 100644 --- a/WORKSPACE.bazel +++ b/WORKSPACE.bazel @@ -2,6 +2,21 @@ workspace(name = "com_github_3rdparty_eventuals") ######################################################################## +# NOTE: we pull in 'pyprotoc-plugin' as a local repository pointing to the +# git submodule that we have so that we can do do more efficient +# development between the two repositories. We'll remove this for +# releases! +local_repository( + name = "com_github_reboot_dev_pyprotoc_plugin", + path = "submodules/pyprotoc-plugin", +) + +load("@com_github_reboot_dev_pyprotoc_plugin//bazel:repos.bzl", pyprotoc_plugin_repos = "repos") + +pyprotoc_plugin_repos(external = False) + +######################################################################## + load("//bazel:repos.bzl", "repos") repos(external = False) diff --git a/submodules/pyprotoc-plugin b/submodules/pyprotoc-plugin new file mode 160000 index 00000000..43ebf88c --- /dev/null +++ b/submodules/pyprotoc-plugin @@ -0,0 +1 @@ +Subproject commit 43ebf88c32fe25a5abef1989784e11e5d95e9350