radex | f87a2e6 | 2024-12-20 01:09:38 +0100 | [diff] [blame] | 1 | ############################################################################### |
| 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 | ############################################################################### |
| 8 | module( |
| 9 | name = "hscloud", |
| 10 | repo_name = "hscloud", |
| 11 | ) |
| 12 | |
| 13 | bazel_dep(name = "bazel_skylib", version = "1.7.1") |
| 14 | bazel_dep(name = "bazel_features", version = "1.23.0") |
| 15 | bazel_dep(name = "rules_proto", version = "7.1.0") |
| 16 | bazel_dep(name = "rules_python", version = "0.38.0") |
| 17 | |
| 18 | pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
| 19 | pip.parse( |
| 20 | hub_name = "pydeps", |
Ari Gerus | c6465de | 2025-06-18 14:59:58 +0000 | [diff] [blame] | 21 | python_version = "3.12", |
radex | f87a2e6 | 2024-12-20 01:09:38 +0100 | [diff] [blame] | 22 | requirements_lock = "//third_party/py:requirements.txt", |
| 23 | ) |
| 24 | use_repo(pip, "pydeps") |
| 25 | |
| 26 | python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| 27 | python.toolchain( |
| 28 | is_default = True, |
Ari Gerus | c6465de | 2025-06-18 14:59:58 +0000 | [diff] [blame] | 29 | python_version = "3.12", |
radex | f87a2e6 | 2024-12-20 01:09:38 +0100 | [diff] [blame] | 30 | ) |
| 31 | |
Piotr Dobrowolski | 8c34a85 | 2025-01-08 21:44:08 +0100 | [diff] [blame] | 32 | bazel_dep(name = "rules_go") |
| 33 | single_version_override( |
| 34 | module_name = "rules_go", |
| 35 | patch_strip = 1, |
| 36 | patches = [ |
| 37 | "//third_party:rules_go_absolute_embedsrc.patch", |
| 38 | ], |
Bartosz Stebel | fca69b9 | 2025-04-17 22:18:15 +0200 | [diff] [blame] | 39 | version = "0.47.0", |
Piotr Dobrowolski | 8c34a85 | 2025-01-08 21:44:08 +0100 | [diff] [blame] | 40 | ) |
| 41 | |
Bartosz Stebel | fca69b9 | 2025-04-17 22:18:15 +0200 | [diff] [blame] | 42 | bazel_dep(name = "gazelle", version = "0.38.0") |
radex | f87a2e6 | 2024-12-20 01:09:38 +0100 | [diff] [blame] | 43 | |
| 44 | go_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. |
| 47 | go_sdk.download( |
| 48 | name = "go-1.20.5", |
| 49 | version = "1.20.5", |
| 50 | ) |
| 51 | |
| 52 | go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") |
| 53 | go_deps.from_file(go_mod = "//:go.mod") |
| 54 | |
| 55 | no_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 Dobrowolski | c3e36ba | 2025-01-12 12:32:12 +0100 | [diff] [blame] | 70 | go_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 | ) |
radex | f87a2e6 | 2024-12-20 01:09:38 +0100 | [diff] [blame] | 77 | use_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", |
radex | f87a2e6 | 2024-12-20 01:09:38 +0100 | [diff] [blame] | 120 | "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", |
radex | 770b0db | 2025-01-11 22:48:16 +0100 | [diff] [blame] | 145 | "org_golang_x_term", |
radex | f87a2e6 | 2024-12-20 01:09:38 +0100 | [diff] [blame] | 146 | ) |
| 147 | |
| 148 | bazel_dep(name = "grpc", version = "1.56.3", repo_name = "com_github_grpc_grpc") |
| 149 | bazel_dep(name = "rules_pkg", version = "1.0.1") |
Serge Bazanski | 00cbee9 | 2025-05-26 18:04:06 +0000 | [diff] [blame] | 150 | bazel_dep(name = "rules_oci", version = "2.2.6") |
radex | f87a2e6 | 2024-12-20 01:09:38 +0100 | [diff] [blame] | 151 | single_version_override( |
| 152 | module_name = "rules_oci", |
| 153 | patch_strip = 1, |
| 154 | patches = ["//third_party:rules_oci.patch"], |
Serge Bazanski | 00cbee9 | 2025-05-26 18:04:06 +0000 | [diff] [blame] | 155 | version = "2.2.6", |
radex | f87a2e6 | 2024-12-20 01:09:38 +0100 | [diff] [blame] | 156 | ) |
| 157 | |
| 158 | bazel_dep(name = "aspect_bazel_lib", version = "2.10.0") |
Bartosz Stebel | d8bc2c0 | 2025-04-18 13:24:38 +0200 | [diff] [blame] | 159 | |
| 160 | include("//third_party/prodimage:rules_distroless.MODULE.bazel") |