Skip to content

Commit

Permalink
refactor: drop rules_go repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobarco committed Feb 25, 2024
1 parent 1bf216f commit 0e0fbce
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 289 deletions.
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@gazelle//:def.bzl", "DEFAULT_LANGUAGES", "gazelle", "gazelle_binary")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@rules_go//go:def.bzl", "go_library")

# gazelle:exclude testdata/*
# gazelle:exclude examples/*
Expand Down
10 changes: 9 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@ module(
version = "1.0",
)

bazel_dep(name = "rules_go", version = "0.46.0", repo_name = "io_bazel_rules_go")
bazel_dep(name = "rules_go", version = "0.46.0")
bazel_dep(name = "gazelle", version = "0.35.0")

# waiting for release 0.36.0 to include
# https://github.com/bazelbuild/bazel-gazelle/pull/1743
git_override(
module_name = "gazelle",
commit = "2a2f5b8ca1da21e2dbfa1b60eb87c175fdd09bfe",
remote = "https://github.com/bazelbuild/bazel-gazelle",
)

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")

Expand Down
Loading

0 comments on commit 0e0fbce

Please sign in to comment.