blob: be2968fd600ac940ff36cccae2ace8f412bf2335 [file] [log] [blame]
radexf87a2e62024-12-20 01:09:38 +01001###############################################################################
2# Bazel now uses Bzlmod by default to manage external dependencies.
3# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
4#
5# For more details
6# please check https://github.com/bazelbuild/bazel/issues/18958
7###############################################################################
8module(
9 name = "hscloud",
10 repo_name = "hscloud",
11)
12
13bazel_dep(name = "bazel_skylib", version = "1.7.1")
14bazel_dep(name = "bazel_features", version = "1.23.0")
15bazel_dep(name = "rules_proto", version = "7.1.0")
16bazel_dep(name = "rules_python", version = "0.38.0")
17
18pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
19pip.parse(
20 hub_name = "pydeps",
Ari Gerusc6465de2025-06-18 14:59:58 +000021 python_version = "3.12",
radexf87a2e62024-12-20 01:09:38 +010022 requirements_lock = "//third_party/py:requirements.txt",
23)
24use_repo(pip, "pydeps")
25
26python = use_extension("@rules_python//python/extensions:python.bzl", "python")
27python.toolchain(
28 is_default = True,
Ari Gerusc6465de2025-06-18 14:59:58 +000029 python_version = "3.12",
radexf87a2e62024-12-20 01:09:38 +010030)
31
Piotr Dobrowolski8c34a852025-01-08 21:44:08 +010032bazel_dep(name = "rules_go")
33single_version_override(
34 module_name = "rules_go",
35 patch_strip = 1,
36 patches = [
37 "//third_party:rules_go_absolute_embedsrc.patch",
38 ],
Bartosz Stebelfca69b92025-04-17 22:18:15 +020039 version = "0.47.0",
Piotr Dobrowolski8c34a852025-01-08 21:44:08 +010040)
41
Bartosz Stebelfca69b92025-04-17 22:18:15 +020042bazel_dep(name = "gazelle", version = "0.38.0")
radexf87a2e62024-12-20 01:09:38 +010043
44go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
45
46# Download an SDK for the host OS & architecture as well as common remote execution platforms.
47go_sdk.download(
48 name = "go-1.20.5",
49 version = "1.20.5",
50)
51
52go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
53go_deps.from_file(go_mod = "//:go.mod")
54
55no_proto_deps = [
56 "github.com/google/certificate-transparency-go",
57 "k8s.io/api",
58 "k8s.io/apiextensions-apiserver",
59 "k8s.io/apimachinery",
60 "k8s.io/cli-runtime",
61 "k8s.io/client-go",
62 "k8s.io/metrics",
63]
64
65[go_deps.gazelle_override(
66 directives = ["gazelle:proto disable"],
67 path = p,
68) for p in no_proto_deps]
69
Piotr Dobrowolskic3e36ba2025-01-12 12:32:12 +010070go_deps.module_override(
71 patch_strip = 1,
72 patches = [
73 "//third_party/go:com_github_cloudflare_circl.patch",
74 ],
75 path = "github.com/cloudflare/circl",
76)
radexf87a2e62024-12-20 01:09:38 +010077use_repo(
78 go_deps,
79 "com_github_arran4_golang_ical",
80 "com_github_boltdb_bolt",
81 "com_github_burntsushi_toml",
82 "com_github_cenkalti_backoff",
83 "com_github_cloudflare_cfrpki",
84 "com_github_cloudflare_cfssl",
85 "com_github_coreos_go_oidc",
86 "com_github_dgraph_io_ristretto",
87 "com_github_digitalocean_go_netbox",
88 "com_github_dustin_go_humanize",
89 "com_github_elazarl_go_bindata_assetfs",
90 "com_github_evanphx_json_patch",
91 "com_github_fvbommel_sortorder",
92 "com_github_gabriel_vasile_mimetype",
93 "com_github_gchaincl_sqlhooks",
94 "com_github_genuinetools_reg",
95 "com_github_ghodss_yaml",
96 "com_github_go_git_go_git_v5",
97 "com_github_go_ldap_ldap_v3",
98 "com_github_go_telegram_bot_api_telegram_bot_api",
99 "com_github_go_test_deep",
100 "com_github_gogo_protobuf",
101 "com_github_golang_collections_go_datastructures",
102 "com_github_golang_glog",
103 "com_github_golang_migrate_migrate_v4",
104 "com_github_golang_protobuf",
105 "com_github_google_gnostic",
106 "com_github_google_go_cmp",
107 "com_github_google_go_jsonnet",
108 "com_github_gorilla_sessions",
109 "com_github_grpc_ecosystem_grpc_gateway",
110 "com_github_itchyny_gojq",
111 "com_github_jmoiron_sqlx",
112 "com_github_kevinburke_go_bindata",
113 "com_github_lib_pq",
114 "com_github_mattn_go_isatty",
115 "com_github_mattn_go_sqlite3",
116 "com_github_minio_minio_go_v7",
117 "com_github_piranha_gostatic",
118 "com_github_q3k_cursedjsonrpc",
119 "com_github_russross_blackfriday_v2",
radexf87a2e62024-12-20 01:09:38 +0100120 "com_github_sergi_go_diff",
121 "com_github_sethvargo_go_password",
122 "com_github_shirou_gopsutil",
123 "com_github_sirupsen_logrus",
124 "com_github_spf13_cobra",
125 "com_github_spf13_pflag",
126 "com_github_stretchr_testify",
127 "com_github_teambition_rrule_go",
128 "com_github_ulule_limiter_v3",
129 "com_github_ziutek_telnet",
130 "in_gopkg_irc_v3",
131 "in_gopkg_yaml_v2",
132 "io_k8s_api",
133 "io_k8s_apiextensions_apiserver",
134 "io_k8s_apimachinery",
135 "io_k8s_client_go",
136 "io_k8s_klog",
137 "io_k8s_kube_openapi",
138 "io_k8s_kubectl",
139 "io_k8s_kubernetes",
140 "org_golang_google_grpc",
141 "org_golang_google_protobuf",
142 "org_golang_x_crypto",
143 "org_golang_x_net",
144 "org_golang_x_oauth2",
radex770b0db2025-01-11 22:48:16 +0100145 "org_golang_x_term",
radexf87a2e62024-12-20 01:09:38 +0100146)
147
148bazel_dep(name = "grpc", version = "1.56.3", repo_name = "com_github_grpc_grpc")
149bazel_dep(name = "rules_pkg", version = "1.0.1")
Serge Bazanski00cbee92025-05-26 18:04:06 +0000150bazel_dep(name = "rules_oci", version = "2.2.6")
radexf87a2e62024-12-20 01:09:38 +0100151single_version_override(
152 module_name = "rules_oci",
153 patch_strip = 1,
154 patches = ["//third_party:rules_oci.patch"],
Serge Bazanski00cbee92025-05-26 18:04:06 +0000155 version = "2.2.6",
radexf87a2e62024-12-20 01:09:38 +0100156)
157
158bazel_dep(name = "aspect_bazel_lib", version = "2.10.0")
Bartosz Stebeld8bc2c02025-04-18 13:24:38 +0200159
160include("//third_party/prodimage:rules_distroless.MODULE.bazel")