Skip to content

Commit

Permalink
apply patch through wrapper macro
Browse files Browse the repository at this point in the history
  • Loading branch information
darkrift authored and sitaktif committed Jan 28, 2025
1 parent c452c67 commit b800947
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions third_party/go/deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ def go_dependencies():
go_repository(
name = "com_github_bazelbuild_bazel_gazelle",
importpath = "github.com/bazelbuild/bazel-gazelle",
patches = [
"//third_party/patches:gazelle_regexp.patch",
],
sum = "h1:SAYys3KRG5i3KTgQAvO423bLT1rQMSgqEKReMkM/CW0=",
version = "v0.40.0",
)
Expand Down
7 changes: 7 additions & 0 deletions third_party/go/go_repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ def go_repository(**kwargs):

# Work around https://github.com/bazelbuild/bazel-gazelle/issues/1344
kwargs["build_external"] = "external"

# Work around for https://github.com/bazel-contrib/bazel-gazelle/pull/2021 until new release of bazel-gazelle
if kwargs["importpath"] == "github.com/bazelbuild/bazel-gazelle":
kwargs["patches"] = [
"//third_party/patches:gazelle_regexp.patch",
]

_go_repository(**kwargs)

0 comments on commit b800947

Please sign in to comment.