-
-
Notifications
You must be signed in to change notification settings - Fork 740
Expand file tree
/
Copy pathMODULE.bazel
More file actions
17 lines (14 loc) · 742 Bytes
/
MODULE.bazel
File metadata and controls
17 lines (14 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# A MODULE.bazel marks the root directory of a Bazel workspace.
#
# Its main purpose is to declare external dependencies on other
# Bazel modules (by default, from registry.bazel.build).
module(name = "hello")
# A bazel_dep declaration is needed for each direct dependency
# of this module. We need rules_go since it's not built into Bazel.
bazel_dep(name = "rules_go", version = "0.52.0")
# We use rules_go's go_sdk module extension to download and configure
# the Go toolchain and standard library. To ensure a deterministic build,
# Bazel typically uses the Go toolchain downloaded here instead of
# one installed on the host machine.
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.23.4")