Sergiusz Bazanski | 5f9b1ec | 2019-09-22 02:19:18 +0200 | [diff] [blame] | 1 | workspace( |
| 2 | name = "hscloud", |
| 3 | ) |
| 4 | |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 5 | load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 6 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 7 | |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 8 | # Load skylib |
Patryk Jakuszew | 28742b8 | 2022-11-26 21:33:38 +0100 | [diff] [blame] | 9 | http_archive( |
| 10 | name = "bazel_skylib", |
| 11 | sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506", |
| 12 | urls = [ |
| 13 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", |
| 14 | "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz", |
| 15 | ], |
| 16 | ) |
| 17 | |
| 18 | load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
| 19 | |
| 20 | bazel_skylib_workspace() |
| 21 | |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 22 | load("@bazel_skylib//lib:versions.bzl", "versions") |
| 23 | |
| 24 | versions.check(minimum_bazel_version = "5.4.1") |
| 25 | |
| 26 | # Protobuf deps (shared between many rules). |
| 27 | # Load this as early as possible, to avoid a different version being pulled in by deps of something else |
| 28 | http_archive( |
| 29 | name = "com_google_protobuf", |
| 30 | sha256 = "76a33e2136f23971ce46c72fd697cd94dc9f73d56ab23b753c3e16854c90ddfd", |
| 31 | strip_prefix = "protobuf-2c5fa078d8e86e5f4bd34e6f4c9ea9e8d7d4d44a", |
| 32 | urls = [ |
| 33 | "https://github.com/protocolbuffers/protobuf/archive/2c5fa078d8e86e5f4bd34e6f4c9ea9e8d7d4d44a.tar.gz", |
| 34 | ], |
| 35 | ) |
| 36 | |
| 37 | http_archive( |
| 38 | name = "rules_proto", |
| 39 | sha256 = "dc3fb206a2cb3441b485eb1e423165b231235a1ea9b031b4433cf7bc1fa460dd", |
| 40 | strip_prefix = "rules_proto-5.3.0-21.7", |
| 41 | urls = [ |
| 42 | "https://github.com/bazelbuild/rules_proto/archive/refs/tags/5.3.0-21.7.tar.gz", |
| 43 | ], |
| 44 | ) |
| 45 | |
| 46 | load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") |
| 47 | |
| 48 | rules_proto_dependencies() |
| 49 | |
| 50 | rules_proto_toolchains() |
| 51 | |
| 52 | rules_python_version = "0.24.0" |
| 53 | |
| 54 | http_archive( |
| 55 | name = "rules_python", |
| 56 | sha256 = "0a8003b044294d7840ac7d9d73eef05d6ceb682d7516781a4ec62eeb34702578", |
| 57 | strip_prefix = "rules_python-{}".format(rules_python_version), |
| 58 | url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/{}.tar.gz".format(rules_python_version), |
| 59 | ) |
| 60 | |
| 61 | # Download Go/Gazelle rules |
| 62 | http_archive( |
| 63 | name = "io_bazel_rules_go", |
| 64 | sha256 = "51dc53293afe317d2696d4d6433a4c33feedb7748a9e352072e2ec3c0dafd2c6", |
| 65 | urls = [ |
| 66 | "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip", |
| 67 | "https://github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip", |
| 68 | ], |
| 69 | ) |
| 70 | |
| 71 | http_archive( |
| 72 | name = "bazel_gazelle", |
| 73 | sha256 = "29d5dafc2a5582995488c6735115d1d366fcd6a0fc2e2a153f02988706349825", |
| 74 | urls = [ |
| 75 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.31.0/bazel-gazelle-v0.31.0.tar.gz", |
| 76 | "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.31.0/bazel-gazelle-v0.31.0.tar.gz", |
| 77 | ], |
| 78 | ) |
| 79 | |
| 80 | load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| 81 | load("//third_party/go:repositories.bzl", "go_repositories") |
| 82 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 83 | # Python rules |
Bartosz Stebel | f21ca38 | 2023-02-04 23:57:59 +0100 | [diff] [blame] | 84 | load("@rules_python//python:repositories.bzl", "python_register_toolchains") |
| 85 | |
| 86 | python_register_toolchains( |
| 87 | name = "python3_10", |
| 88 | python_version = "3.10", |
| 89 | ) |
| 90 | |
| 91 | load("@python3_10//:defs.bzl", "interpreter") |
Serge Bazanski | 4e534cc | 2021-06-29 19:16:45 +0000 | [diff] [blame] | 92 | load("@rules_python//python:pip.bzl", "pip_parse") |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 93 | |
Serge Bazanski | 4e534cc | 2021-06-29 19:16:45 +0000 | [diff] [blame] | 94 | pip_parse( |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 95 | name = "pydeps", |
Bartosz Stebel | f21ca38 | 2023-02-04 23:57:59 +0100 | [diff] [blame] | 96 | python_interpreter_target = interpreter, |
Serge Bazanski | 4e534cc | 2021-06-29 19:16:45 +0000 | [diff] [blame] | 97 | requirements_lock = "//third_party/py:requirements.txt", |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 98 | ) |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 99 | |
Serge Bazanski | 4e534cc | 2021-06-29 19:16:45 +0000 | [diff] [blame] | 100 | load("@pydeps//:requirements.bzl", "install_deps") |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 101 | |
Serge Bazanski | 4e534cc | 2021-06-29 19:16:45 +0000 | [diff] [blame] | 102 | install_deps() |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 103 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 104 | # Setup Go toolchain. |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 105 | |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 106 | # gazelle:repository_macro third_party/go/repositories.bzl%go_repositories |
| 107 | # gazelle:repository go_repository name=hscloud importpath=code.hackerspace.pl/hscloud |
| 108 | go_repositories() |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 109 | |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 110 | load("@bazel_gazelle//:deps.bzl", "go_repository") |
| 111 | |
| 112 | go_repository( |
| 113 | name = "org_golang_x_mod", |
| 114 | build_external = "external", |
| 115 | importpath = "golang.org/x/mod", |
| 116 | sum = "h1:lFO9qtOdlre5W1jxS3r/4szv2/6iXxScdzjoBMXNhYk=", |
| 117 | version = "v0.10.0", |
| 118 | ) |
| 119 | |
| 120 | go_rules_dependencies() |
| 121 | |
Serge Bazanski | 939eaaa | 2024-01-15 13:19:16 +0000 | [diff] [blame] | 122 | go_register_toolchains(go_version = "1.20.5", nogo = "@//:nogo") |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 123 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 124 | http_archive( |
| 125 | name = "com_github_grpc_grpc", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 126 | patch_args = ["-p1"], |
| 127 | patches = [ |
| 128 | "//third_party:grpc_extra_deps.patch", |
| 129 | ], |
| 130 | sha256 = "931f07db9d48cff6a6007c1033ba6d691fe655bea2765444bc1ad974dfc840aa", |
| 131 | strip_prefix = "grpc-1.56.2", |
| 132 | urls = ["https://github.com/grpc/grpc/archive/v1.56.2.tar.gz"], |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 133 | ) |
| 134 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 135 | # Load grpc deps after Go, to prevent overriding Go toolchains/SDK. |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 136 | load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 137 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 138 | grpc_deps() |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 139 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 140 | load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 141 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 142 | grpc_extra_deps() |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 143 | |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 144 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 145 | |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 146 | gazelle_dependencies() |
| 147 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 148 | # Docker rules |
| 149 | |
| 150 | http_archive( |
| 151 | name = "io_bazel_rules_docker", |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 152 | sha256 = "b1e80761a8a8243d03ebca8845e9cc1ba6c82ce7c5179ce2b295cd36f7e394bf", |
| 153 | urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.25.0/rules_docker-v0.25.0.tar.gz"], |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 154 | ) |
| 155 | |
Sergiusz Bazanski | 356ea8b | 2019-07-21 23:56:43 +0200 | [diff] [blame] | 156 | load("@io_bazel_rules_docker//toolchains/docker:toolchain.bzl", docker_toolchain_configure = "toolchain_configure") |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 157 | load( |
| 158 | "@io_bazel_rules_docker//repositories:repositories.bzl", |
| 159 | container_repositories = "repositories", |
| 160 | ) |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 161 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 162 | container_repositories() |
Sergiusz Bazanski | 8fe651b | 2019-07-21 23:50:05 +0200 | [diff] [blame] | 163 | |
Bartosz Stebel | f5b1a21 | 2023-02-04 23:47:44 +0100 | [diff] [blame] | 164 | load( |
| 165 | "@io_bazel_rules_docker//python3:image.bzl", |
| 166 | _py_image_repos = "repositories", |
| 167 | ) |
| 168 | |
| 169 | _py_image_repos() |
| 170 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 171 | # Docker base images |
| 172 | |
| 173 | load("@io_bazel_rules_docker//container:container.bzl", "container_pull") |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 174 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 175 | container_pull( |
Bartosz Stebel | f5b1a21 | 2023-02-04 23:47:44 +0100 | [diff] [blame] | 176 | name = "python-debian", |
| 177 | digest = "sha256:cfa3b79333c4e56fc675b6800445b6dcbb3e6cd4d52f2a9ade944ab73dadc6a1", |
| 178 | registry = "index.docker.io", |
| 179 | repository = "python", |
Serge Bazanski | dacb778 | 2024-01-15 12:53:30 +0000 | [diff] [blame] | 180 | tag = "3.10-bullseye", # use the same version as in python_register_toolchains |
Bartosz Stebel | f5b1a21 | 2023-02-04 23:47:44 +0100 | [diff] [blame] | 181 | ) |
| 182 | |
Bartosz Stebel | f5b1a21 | 2023-02-04 23:47:44 +0100 | [diff] [blame] | 183 | container_pull( |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 184 | name = "prodimage-bionic", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 185 | digest = "sha256:1cd1f84169b8e1414a5d511b42909f2d540831c67b6799ae9af8cd6a80d75b5f", |
Serge Bazanski | b2d6b11 | 2019-07-30 13:07:04 +0200 | [diff] [blame] | 186 | registry = "registry.k0.hswaw.net", |
| 187 | repository = "q3k/prodimage", |
Serge Bazanski | ec71cb5 | 2019-08-22 18:13:13 +0200 | [diff] [blame] | 188 | tag = "20190822-1227", |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 189 | ) |
| 190 | |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 191 | container_pull( |
Serge Bazanski | a63c315 | 2021-12-26 10:26:42 +0000 | [diff] [blame] | 192 | name = "prodimage-focal", |
| 193 | digest = "sha256:fb6159a3ddf2f783092f1169792d1fba6f108714026ad2aa08204e8356825a13", |
| 194 | registry = "registry.k0.hswaw.net", |
| 195 | repository = "q3k/prodimage-focal", |
| 196 | tag = "20211214-0108", |
| 197 | ) |
| 198 | |
| 199 | container_pull( |
Serge Bazanski | 2ceb69f | 2023-10-08 12:27:44 +0000 | [diff] [blame] | 200 | name = "gerrit-3.7.5", |
| 201 | digest = "sha256:3705f3cb365bf53a8e310dd7e09c8fb44a073e1266dc0e713b6fdc04c91ab9f2", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 202 | registry = "index.docker.io", |
| 203 | repository = "gerritcodereview/gerrit", |
Serge Bazanski | 2ceb69f | 2023-10-08 12:27:44 +0000 | [diff] [blame] | 204 | tag = "3.7.5-ubuntu20", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 205 | ) |
| 206 | |
Sergiusz Bazanski | 4805057 | 2020-05-10 21:34:10 +0200 | [diff] [blame] | 207 | # third_party/factorio |
| 208 | load("//third_party/factorio:factorio.bzl", "factorio_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 209 | |
Sergiusz Bazanski | 4805057 | 2020-05-10 21:34:10 +0200 | [diff] [blame] | 210 | factorio_repositories() |
Sergiusz Bazanski | 59786c5 | 2020-04-01 02:05:42 +0200 | [diff] [blame] | 211 | |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 212 | # For devtools/gerrit/gerrit-oauth-provider and gerrit OWNERS plugin |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 213 | |
| 214 | git_repository( |
| 215 | name = "com_googlesource_gerrit_bazlets", |
Serge Bazanski | 49431e8 | 2023-10-27 20:59:04 +0200 | [diff] [blame] | 216 | # change 389378, https://gerrit-review.googlesource.com/c/bazlets/+/389378 |
| 217 | commit = "0c120e55519b103477b6e0b0ce9130cd6f19abff", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 218 | remote = "https://gerrit.googlesource.com/bazlets", |
Bartosz Stebel | 0e2057f | 2020-12-28 21:40:09 +0100 | [diff] [blame] | 219 | shallow_since = "1606931369 -0600", |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 220 | ) |
| 221 | |
Serge Bazanski | 2ceb69f | 2023-10-08 12:27:44 +0000 | [diff] [blame] | 222 | # Force newer version of Gerrit plugin API. |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 223 | load("@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", "gerrit_api") |
Serge Bazanski | dacb778 | 2024-01-15 12:53:30 +0000 | [diff] [blame] | 224 | |
Serge Bazanski | 2ceb69f | 2023-10-08 12:27:44 +0000 | [diff] [blame] | 225 | gerrit_api( |
Serge Bazanski | 49431e8 | 2023-10-27 20:59:04 +0200 | [diff] [blame] | 226 | acceptance_framework_sha1 = "aa51456eda49f928217de4bd46e4af8fbea8c4f1", |
Serge Bazanski | dacb778 | 2024-01-15 12:53:30 +0000 | [diff] [blame] | 227 | plugin_api_sha1 = "1ea41f95da74045c2cdb30d359041a79b61e72ff", |
| 228 | version = "3.7.5", |
Serge Bazanski | 2ceb69f | 2023-10-08 12:27:44 +0000 | [diff] [blame] | 229 | ) |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 230 | |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 231 | load("//devtools/gerrit/gerrit-oauth-provider:external_plugin_deps.bzl", gerrit_oauth_deps = "external_plugin_deps") |
| 232 | |
| 233 | gerrit_oauth_deps(omit_commons_codec = False) |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 234 | |
| 235 | # Gerrit OWNERS plugins external repositories |
| 236 | |
| 237 | git_repository( |
| 238 | name = "com_googlesource_gerrit_plugin_owners", |
Serge Bazanski | 2ceb69f | 2023-10-08 12:27:44 +0000 | [diff] [blame] | 239 | commit = "6db2d3f048f56fa49469d315b716787d21f8393f", |
Serge Bazanski | 2ceb69f | 2023-10-08 12:27:44 +0000 | [diff] [blame] | 240 | patch_args = ["-p1"], |
| 241 | patches = [ |
| 242 | "//third_party:gerrit_plugins_owner.patch", |
| 243 | ], |
Serge Bazanski | dacb778 | 2024-01-15 12:53:30 +0000 | [diff] [blame] | 244 | remote = "https://gerrit.googlesource.com/plugins/owners/", |
| 245 | shallow_since = "1593642470 +0200", |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 246 | ) |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 247 | |
| 248 | load("@com_googlesource_gerrit_plugin_owners//:external_plugin_deps_standalone.bzl", gerrit_owners_deps = "external_plugin_deps_standalone") |
| 249 | |
Serge Bazanski | faa326a | 2020-12-17 23:32:42 +0100 | [diff] [blame] | 250 | gerrit_owners_deps() |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 251 | |
Sergiusz Bazanski | 356ea8b | 2019-07-21 23:56:43 +0200 | [diff] [blame] | 252 | # Go image repos for Docker |
| 253 | |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 254 | load( |
| 255 | "@io_bazel_rules_docker//go:image.bzl", |
| 256 | go_image_repos = "repositories", |
| 257 | ) |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 258 | |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 259 | go_image_repos() |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 260 | |
Serge Bazanski | 19c8b60 | 2022-02-01 09:36:47 +0000 | [diff] [blame] | 261 | # //hswaw/site deps. |
| 262 | load("//hswaw/site:deps.bzl", "hswaw_site_deps") |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 263 | |
Serge Bazanski | 19c8b60 | 2022-02-01 09:36:47 +0000 | [diff] [blame] | 264 | hswaw_site_deps() |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 265 | |
| 266 | # noVNC, used by //dc/drackvm. |
| 267 | http_archive( |
| 268 | name = "com_github_novnc_novnc", |
| 269 | build_file_content = """ |
| 270 | filegroup( |
| 271 | name = "distfiles", |
| 272 | srcs = [ |
| 273 | "vnc.html", |
| 274 | ] + glob([ |
| 275 | "app/**", |
| 276 | "core/**", |
| 277 | "vendor/**", |
| 278 | ]), |
| 279 | visibility = ["//visibility:public"], |
| 280 | ) |
| 281 | """, |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 282 | sha256 = "2c972cca34376dfd2a54939e7e571e466511bf592d03e838440b3c8868441eaf", |
| 283 | strip_prefix = "noVNC-1.3.0-beta", |
Serge Bazanski | d01f9e5 | 2021-10-07 19:24:31 +0000 | [diff] [blame] | 284 | urls = ["https://github.com/novnc/noVNC/archive/refs/tags/v1.3.0-beta.tar.gz"], |
Serge Bazanski | 1f06230 | 2021-06-01 22:24:34 +0000 | [diff] [blame] | 285 | ) |
Bartosz Stebel | 12f176c | 2021-06-18 13:12:41 +0200 | [diff] [blame] | 286 | |
| 287 | # temporarily use upstream binary, see //cluster/tools/BUILD |
| 288 | http_file( |
| 289 | name = "calicoctl_3_15", |
| 290 | downloaded_file_path = "calicoctl", |
Bartosz Stebel | 12f176c | 2021-06-18 13:12:41 +0200 | [diff] [blame] | 291 | executable = True, |
Serge Bazanski | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 292 | sha256 = "f49e9e8d25108f7f22d5a51c756b2fe40cbe36347ad297e31a767376172f2845", |
| 293 | urls = ["https://github.com/projectcalico/calicoctl/releases/download/v3.15.5/calicoctl"], |
Bartosz Stebel | 12f176c | 2021-06-18 13:12:41 +0200 | [diff] [blame] | 294 | ) |
Serge Bazanski | fe94c9b | 2023-10-10 17:22:11 +0200 | [diff] [blame] | 295 | |
| 296 | # viz.js 2.x used by //dc/topo |
| 297 | load("//third_party:vizjs.bzl", "vizjs_repositories") |
Serge Bazanski | dacb778 | 2024-01-15 12:53:30 +0000 | [diff] [blame] | 298 | |
Serge Bazanski | fe94c9b | 2023-10-10 17:22:11 +0200 | [diff] [blame] | 299 | vizjs_repositories() |
Serge Bazanski | 960b434 | 2024-01-15 12:52:52 +0000 | [diff] [blame] | 300 | |
| 301 | # buildifier and friends |
| 302 | http_archive( |
| 303 | name = "com_github_bazelbuild_buildtools", |
| 304 | sha256 = "ae34c344514e08c23e90da0e2d6cb700fcd28e80c02e23e4d5715dddcb42f7b3", |
| 305 | strip_prefix = "buildtools-4.2.2", |
| 306 | urls = [ |
| 307 | "https://github.com/bazelbuild/buildtools/archive/refs/tags/4.2.2.tar.gz", |
| 308 | ], |
| 309 | ) |