blob: be2968fd600ac940ff36cccae2ace8f412bf2335 [file] [log] [blame]
###############################################################################
# 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
###############################################################################
module(
name = "hscloud",
repo_name = "hscloud",
)
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "bazel_features", version = "1.23.0")
bazel_dep(name = "rules_proto", version = "7.1.0")
bazel_dep(name = "rules_python", version = "0.38.0")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pydeps",
python_version = "3.12",
requirements_lock = "//third_party/py:requirements.txt",
)
use_repo(pip, "pydeps")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
is_default = True,
python_version = "3.12",
)
bazel_dep(name = "rules_go")
single_version_override(
module_name = "rules_go",
patch_strip = 1,
patches = [
"//third_party:rules_go_absolute_embedsrc.patch",
],
version = "0.47.0",
)
bazel_dep(name = "gazelle", version = "0.38.0")
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(
name = "go-1.20.5",
version = "1.20.5",
)
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
no_proto_deps = [
"github.com/google/certificate-transparency-go",
"k8s.io/api",
"k8s.io/apiextensions-apiserver",
"k8s.io/apimachinery",
"k8s.io/cli-runtime",
"k8s.io/client-go",
"k8s.io/metrics",
]
[go_deps.gazelle_override(
directives = ["gazelle:proto disable"],
path = p,
) for p in no_proto_deps]
go_deps.module_override(
patch_strip = 1,
patches = [
"//third_party/go:com_github_cloudflare_circl.patch",
],
path = "github.com/cloudflare/circl",
)
use_repo(
go_deps,
"com_github_arran4_golang_ical",
"com_github_boltdb_bolt",
"com_github_burntsushi_toml",
"com_github_cenkalti_backoff",
"com_github_cloudflare_cfrpki",
"com_github_cloudflare_cfssl",
"com_github_coreos_go_oidc",
"com_github_dgraph_io_ristretto",
"com_github_digitalocean_go_netbox",
"com_github_dustin_go_humanize",
"com_github_elazarl_go_bindata_assetfs",
"com_github_evanphx_json_patch",
"com_github_fvbommel_sortorder",
"com_github_gabriel_vasile_mimetype",
"com_github_gchaincl_sqlhooks",
"com_github_genuinetools_reg",
"com_github_ghodss_yaml",
"com_github_go_git_go_git_v5",
"com_github_go_ldap_ldap_v3",
"com_github_go_telegram_bot_api_telegram_bot_api",
"com_github_go_test_deep",
"com_github_gogo_protobuf",
"com_github_golang_collections_go_datastructures",
"com_github_golang_glog",
"com_github_golang_migrate_migrate_v4",
"com_github_golang_protobuf",
"com_github_google_gnostic",
"com_github_google_go_cmp",
"com_github_google_go_jsonnet",
"com_github_gorilla_sessions",
"com_github_grpc_ecosystem_grpc_gateway",
"com_github_itchyny_gojq",
"com_github_jmoiron_sqlx",
"com_github_kevinburke_go_bindata",
"com_github_lib_pq",
"com_github_mattn_go_isatty",
"com_github_mattn_go_sqlite3",
"com_github_minio_minio_go_v7",
"com_github_piranha_gostatic",
"com_github_q3k_cursedjsonrpc",
"com_github_russross_blackfriday_v2",
"com_github_sergi_go_diff",
"com_github_sethvargo_go_password",
"com_github_shirou_gopsutil",
"com_github_sirupsen_logrus",
"com_github_spf13_cobra",
"com_github_spf13_pflag",
"com_github_stretchr_testify",
"com_github_teambition_rrule_go",
"com_github_ulule_limiter_v3",
"com_github_ziutek_telnet",
"in_gopkg_irc_v3",
"in_gopkg_yaml_v2",
"io_k8s_api",
"io_k8s_apiextensions_apiserver",
"io_k8s_apimachinery",
"io_k8s_client_go",
"io_k8s_klog",
"io_k8s_kube_openapi",
"io_k8s_kubectl",
"io_k8s_kubernetes",
"org_golang_google_grpc",
"org_golang_google_protobuf",
"org_golang_x_crypto",
"org_golang_x_net",
"org_golang_x_oauth2",
"org_golang_x_term",
)
bazel_dep(name = "grpc", version = "1.56.3", repo_name = "com_github_grpc_grpc")
bazel_dep(name = "rules_pkg", version = "1.0.1")
bazel_dep(name = "rules_oci", version = "2.2.6")
single_version_override(
module_name = "rules_oci",
patch_strip = 1,
patches = ["//third_party:rules_oci.patch"],
version = "2.2.6",
)
bazel_dep(name = "aspect_bazel_lib", version = "2.10.0")
include("//third_party/prodimage:rules_distroless.MODULE.bazel")