Skip to content

Commit

Permalink
Pull in unreleased gazelle
Browse files Browse the repository at this point in the history
We need bazelbuild/bazel-gazelle#1798 for our
tests to run on Windows.

Our users don't actaully need this, because it's only for the sake of
our tests.
  • Loading branch information
illicitonion committed May 8, 2024
1 parent d820144 commit 85240af
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ bazel_dep(
version = "0.36.0",
repo_name = "bazel_gazelle",
)
git_override(
module_name = "gazelle",
commit = "ba2ce367a545e0bdd74a7abca40ef5e0a0cb8dcb",
remote = "https://github.com/bazelbuild/bazel-gazelle.git",
)

bazel_dep(
name = "protobuf",
version = PROTOBUF_VERSION,
Expand Down
5 changes: 5 additions & 0 deletions examples/gazelle/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@ bazel_dep(
name = "gazelle",
version = "0.36.0",
)
git_override(
module_name = "gazelle",
commit = "ba2ce367a545e0bdd74a7abca40ef5e0a0cb8dcb",
remote = "https://github.com/bazelbuild/bazel-gazelle.git",
)
2 changes: 1 addition & 1 deletion examples/gazelle/src/test/com/example/gazelle/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@contrib_rules_jvm//java:defs.bzl", "java_test_suite")
load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
load("@contrib_rules_jvm//java:defs.bzl", "java_test_suite")

genquery(
name = "generated_targets",
Expand Down
7 changes: 4 additions & 3 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,13 @@ def contrib_rules_jvm_gazelle_deps():
],
)

# We need https://github.com/bazelbuild/bazel-gazelle/pull/1686
# We need https://github.com/bazelbuild/bazel-gazelle/pull/1798
maybe(
http_archive,
name = "bazel_gazelle",
sha256 = "75df288c4b31c81eb50f51e2e14f4763cb7548daae126817247064637fd9ea62",
url = "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.36.0/bazel-gazelle-v0.36.0.tar.gz",
sha256 = "d1d72a9abd6dee362354274fa9b60ced8f50ee1f10f9b9fef90b4acfb98d477b",
strip_prefix = "bazel-gazelle-ba2ce367a545e0bdd74a7abca40ef5e0a0cb8dcb",
url = "https://github.com/bazelbuild/bazel-gazelle/archive/ba2ce367a545e0bdd74a7abca40ef5e0a0cb8dcb.zip",
)

maybe(
Expand Down

0 comments on commit 85240af

Please sign in to comment.