You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
###############################################################################
|
|
# Bazel now uses Bzlmod by default to manage external dependencies.
|
|
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
|
|
#
|
|
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
|
|
###############################################################################
|
|
bazel_dep(name = "rules_go", version = "0.48.0")
|
|
bazel_dep(name = "gazelle", version = "0.37.0")
|
|
|
|
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
|
|
go_deps.from_file(go_mod = "//:go.mod")
|
|
use_repo(go_deps, "com_github_redis_go_redis_v9")
|
|
|
|
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
|
|
|
|
# Download an SDK for the host OS & architecture as well as common remote execution platforms.
|
|
go_sdk.download(version = "1.22.5")
|
|
|
|
# Alternately, download an SDK for a fixed OS/architecture.
|
|
go_sdk.download(
|
|
goarch = "amd64",
|
|
goos = "linux",
|
|
version = "1.22.5",
|
|
)
|
|
|
|
# Register the Go SDK installed on the host.
|
|
# go_sdk.host()
|