-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MODULE.bazel
38 lines (30 loc) · 903 Bytes
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
"""A module file named the dependencies of the project."""
module (
name = "go-starter-template",
repo_name = "com_github_sarvsav_golang-starter-template",
version = "1.0.0"
)
# Defining dependencies and latest versions are always listed on https://registry.bazel.build
bazel_dep(
name = "rules_go",
version = "0.50.1"
)
bazel_dep(
name = "gazelle",
version = "0.40.0"
)
bazel_dep(
name = "rules_proto",
version = "7.0.2"
)
# As we have a fixed version in go.mod file, we can sync with the same version using go_sdk module extension
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
# Download SDK for fixed OS/architecture
go_sdk.download(
goos = "linux",
goarch = "amd64",
version = "1.22.1"
)
# Register the GO SDK installed on host
go_sdk.host()
bazel_dep(name = "protobuf", version = "28.3", repo_name = "com_google_protobuf")