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.
48 lines
1.6 KiB
48 lines
1.6 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")
|
|
|
|
bazel_dep(name = "rules_oci", version = "1.4.0")
|
|
bazel_dep(name = "rules_pkg", version = "0.9.1")
|
|
|
|
oci = use_extension("@rules_oci//oci:extensions.bzl", "oci")
|
|
oci.pull(
|
|
name = "alpine",
|
|
digest = "sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b",
|
|
image = "docker.io/library/alpine",
|
|
platforms = [
|
|
"linux/386",
|
|
"linux/amd64",
|
|
"linux/arm/v6",
|
|
"linux/arm/v7",
|
|
"linux/arm64/v8",
|
|
"linux/ppc64le",
|
|
"linux/s390x",
|
|
],
|
|
)
|
|
use_repo(oci, "alpine")
|
|
|
|
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.1")
|
|
|
|
# Alternately, download an SDK for a fixed OS/architecture.
|
|
go_sdk.download(
|
|
goarch = "amd64",
|
|
goos = "linux",
|
|
version = "1.22.1",
|
|
)
|
|
|
|
# Register the Go SDK installed on the host.
|
|
# go_sdk.host()
|