Skip to content

Commit

Permalink
Respond to review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Oct 18, 2022
1 parent e96655b commit 962eebd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 4 additions & 1 deletion gazelle/BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# The files needed for distribution
filegroup(
name = "distribution",
srcs = glob(["*"]),
srcs = glob(
["*"],
allow_empty = True,
),
visibility = [
"//:__pkg__",
"//distribution:__pkg__",
Expand Down
12 changes: 10 additions & 2 deletions gazelle_setup.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,16 @@
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

def bazel_skylib_gazelle_plugin_setup():
def bazel_skylib_gazelle_plugin_setup(go_version = "1.18.7", register_go_toolchains = True):
"""Set up the dependencies needed by the Gazelle plugin.
Args:
go_version: The version of Go registered as part of the build as a string
register_go_toolchains: A boolean indicating whether or not to register the Go toolchains. Defaults to `True`
"""
go_rules_dependencies()
go_register_toolchains(version = "1.17.1")

if register_go_toolchains:
go_register_toolchains(version = go_version)

gazelle_dependencies()

0 comments on commit 962eebd

Please sign in to comment.