Allow applying patches before BUILD file generation
This adds support for patching Go dependencies before BUILD file generation and
also plumbs that support into fietsje. No actual prepatching is done in this revision.
Test Plan: This has been used successfully in code built on top of it.
X-Origin-Diff: phab/D612
GitOrigin-RevId: 7013e5f98feb57ac64ff3dc79d1a9bb94e4152a8
diff --git a/WORKSPACE b/WORKSPACE
index 98a8177..56f5bba 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -41,6 +41,10 @@
http_archive(
name = "bazel_gazelle",
+ patch_args = ["-p1"],
+ patches = [
+ "//third_party/gazelle:add-prepatching.patch",
+ ],
sha256 = "bfd86b3cbe855d6c16c6fce60d76bd51f5c8dbc9cfcaef7a2bb5c1aafd0710e8",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.21.0/bazel-gazelle-v0.21.0.tar.gz",