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 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 8 | # Protobuf deps (shared between many rules). |
| 9 | # Load this as early as possible, to avoid a different version being pulled in by deps of something else |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 10 | http_archive( |
| 11 | name = "com_google_protobuf", |
| 12 | sha256 = "bb8ce9ba11eb7bccf080599fe7cad9cc461751c8dd1ba61701c0070d58cde973", |
| 13 | strip_prefix = "protobuf-3.12.2", |
| 14 | urls = ["https://github.com/google/protobuf/archive/v3.12.2.tar.gz"], |
| 15 | ) |
| 16 | |
| 17 | load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 18 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 19 | protobuf_deps() |
| 20 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 21 | # Force rules_python at a bleeding edge version (for pip3_import). |
| 22 | http_archive( |
| 23 | name = "rules_python", |
| 24 | url = "https://github.com/bazelbuild/rules_python/releases/download/0.0.3/rules_python-0.0.3.tar.gz", |
| 25 | sha256 = "e46612e9bb0dae8745de6a0643be69e8665a03f63163ac6610c210e80d14c3e4", |
| 26 | ) |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 27 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 28 | # Download Go/Gazelle rules |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 29 | http_archive( |
| 30 | name = "io_bazel_rules_go", |
Serge Bazanski | 42b21ec | 2020-11-27 10:22:15 +0100 | [diff] [blame] | 31 | sha256 = "207fad3e6689135c5d8713e5a17ba9d1290238f47b9ba545b63d9303406209c6", |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 32 | urls = [ |
Serge Bazanski | 42b21ec | 2020-11-27 10:22:15 +0100 | [diff] [blame] | 33 | "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.7/rules_go-v0.24.7.tar.gz", |
| 34 | "https://github.com/bazelbuild/rules_go/releases/download/v0.24.7/rules_go-v0.24.7.tar.gz", |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 35 | ], |
| 36 | ) |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 37 | |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 38 | http_archive( |
| 39 | name = "bazel_gazelle", |
| 40 | sha256 = "bfd86b3cbe855d6c16c6fce60d76bd51f5c8dbc9cfcaef7a2bb5c1aafd0710e8", |
| 41 | urls = [ |
| 42 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.21.0/bazel-gazelle-v0.21.0.tar.gz", |
| 43 | "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.21.0/bazel-gazelle-v0.21.0.tar.gz", |
| 44 | ], |
| 45 | ) |
| 46 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 47 | # Python rules |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 48 | # Important: rules_python must be loaded before protobuf (and grpc) because they load an older version otherwise |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 49 | load("@rules_python//python:repositories.bzl", "py_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 50 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 51 | py_repositories() |
| 52 | |
| 53 | load("@rules_python//python:pip.bzl", "pip_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 54 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 55 | pip_repositories() |
| 56 | |
Serge Bazanski | 4b61330 | 2021-02-13 13:16:10 +0100 | [diff] [blame] | 57 | load("@rules_python//python:pip.bzl", "pip3_import") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 58 | |
Serge Bazanski | 4b61330 | 2021-02-13 13:16:10 +0100 | [diff] [blame] | 59 | pip3_import( |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 60 | name = "pydeps", |
| 61 | requirements = "//third_party/py:requirements.txt", |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 62 | ) |
| 63 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 64 | load("@pydeps//:requirements.bzl", "pip_install") |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 65 | |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 66 | pip_install() |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 67 | |
| 68 | # Setup Go toolchain. |
Serge Bazanski | 4b61330 | 2021-02-13 13:16:10 +0100 | [diff] [blame] | 69 | load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains") |
| 70 | go_register_toolchains() |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 71 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 72 | # IMPORTANT: match protobuf version above with the one loaded by grpc |
| 73 | http_archive( |
| 74 | name = "com_github_grpc_grpc", |
| 75 | sha256 = "419dba362eaf8f1d36849ceee17c3e2ff8ff12ac666b42d3ff02a164ebe090e9", |
| 76 | strip_prefix = "grpc-1.30.0", |
| 77 | urls = ["https://github.com/grpc/grpc/archive/v1.30.0.tar.gz"], |
| 78 | ) |
| 79 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 80 | # Load grpc deps after Go, to prevent overriding Go toolchains/SDK. |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 81 | load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 82 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 83 | grpc_deps() |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 84 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 85 | 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] | 86 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 87 | grpc_extra_deps() |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 88 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 89 | load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 90 | |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 91 | go_rules_dependencies() |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 92 | |
Serge Bazanski | 1e1a4dd | 2020-08-01 14:07:27 +0200 | [diff] [blame] | 93 | # gazelle:repository_macro third_party/go/repositories.bzl%go_repositories |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 94 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") |
| 95 | |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 96 | gazelle_dependencies() |
| 97 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 98 | # Load Go third-party packages. |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 99 | load("//third_party/go:repositories.bzl", "go_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 100 | |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 101 | go_repositories() |
| 102 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 103 | # Docker rules |
| 104 | |
| 105 | http_archive( |
| 106 | name = "io_bazel_rules_docker", |
Norbert Szulc | a6e1b8d | 2021-05-12 14:17:31 +0200 | [diff] [blame] | 107 | sha256 = "59d5b42ac315e7eadffa944e86e90c2990110a1c8075f1cd145f487e999d22b3", |
| 108 | strip_prefix = "rules_docker-0.17.0", |
| 109 | urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.17.0/rules_docker-v0.17.0.tar.gz"], |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 110 | ) |
| 111 | |
Sergiusz Bazanski | 356ea8b | 2019-07-21 23:56:43 +0200 | [diff] [blame] | 112 | load("@io_bazel_rules_docker//toolchains/docker:toolchain.bzl", docker_toolchain_configure = "toolchain_configure") |
| 113 | |
| 114 | # This forces the use of Docker $HOME/.docker configuration. |
| 115 | docker_toolchain_configure( |
| 116 | name = "docker_config", |
| 117 | client_config = "", |
Serge Bazanski | b2d6b11 | 2019-07-30 13:07:04 +0200 | [diff] [blame] | 118 | docker_path = "/usr/bin/docker", |
Sergiusz Bazanski | 356ea8b | 2019-07-21 23:56:43 +0200 | [diff] [blame] | 119 | ) |
| 120 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 121 | load( |
| 122 | "@io_bazel_rules_docker//repositories:repositories.bzl", |
| 123 | container_repositories = "repositories", |
| 124 | ) |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 125 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 126 | container_repositories() |
Sergiusz Bazanski | 8fe651b | 2019-07-21 23:50:05 +0200 | [diff] [blame] | 127 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 128 | # Docker base images |
| 129 | |
| 130 | load("@io_bazel_rules_docker//container:container.bzl", "container_pull") |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 131 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 132 | container_pull( |
| 133 | name = "prodimage-bionic", |
Serge Bazanski | b2d6b11 | 2019-07-30 13:07:04 +0200 | [diff] [blame] | 134 | registry = "registry.k0.hswaw.net", |
| 135 | repository = "q3k/prodimage", |
Serge Bazanski | ec71cb5 | 2019-08-22 18:13:13 +0200 | [diff] [blame] | 136 | tag = "20190822-1227", |
| 137 | digest = "sha256:1cd1f84169b8e1414a5d511b42909f2d540831c67b6799ae9af8cd6a80d75b5f", |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 138 | ) |
| 139 | |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 140 | container_pull( |
Serge Bazanski | dd69221 | 2021-03-11 17:51:02 +0100 | [diff] [blame] | 141 | name = "gerrit-3.3.2", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 142 | registry = "index.docker.io", |
| 143 | repository = "gerritcodereview/gerrit", |
Serge Bazanski | dd69221 | 2021-03-11 17:51:02 +0100 | [diff] [blame] | 144 | tag = "3.3.2-ubuntu20", |
| 145 | digest = "sha256:f7fc8b749706f38475f94191117091973914a8f084e69518deff7dbc9c2c557d", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 146 | ) |
| 147 | |
Sergiusz Bazanski | 4805057 | 2020-05-10 21:34:10 +0200 | [diff] [blame] | 148 | # third_party/factorio |
| 149 | load("//third_party/factorio:factorio.bzl", "factorio_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 150 | |
Sergiusz Bazanski | 4805057 | 2020-05-10 21:34:10 +0200 | [diff] [blame] | 151 | factorio_repositories() |
Sergiusz Bazanski | 59786c5 | 2020-04-01 02:05:42 +0200 | [diff] [blame] | 152 | |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 153 | # For devtools/gerrit/gerrit-oauth-provider and gerrit OWNERS plugin |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 154 | |
| 155 | git_repository( |
| 156 | name = "com_googlesource_gerrit_bazlets", |
| 157 | remote = "https://gerrit.googlesource.com/bazlets", |
Serge Bazanski | faa326a | 2020-12-17 23:32:42 +0100 | [diff] [blame] | 158 | commit = "a511f3c90129d7de7ae67c0637001162980c08d5", |
Bartosz Stebel | 0e2057f | 2020-12-28 21:40:09 +0100 | [diff] [blame] | 159 | shallow_since = "1606931369 -0600", |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 160 | ) |
| 161 | |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 162 | load("@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", "gerrit_api") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 163 | |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 164 | gerrit_api() |
| 165 | |
Serge Bazanski | faa326a | 2020-12-17 23:32:42 +0100 | [diff] [blame] | 166 | load("//devtools/gerrit/gerrit-oauth-provider:external_plugin_deps.bzl", gerrit_oauth_deps="external_plugin_deps") |
| 167 | gerrit_oauth_deps(omit_commons_codec=False) |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 168 | |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 169 | # Gerrit 3.3.2 built by q3k, backported with fix for 'empty reviewers column' bug. |
| 170 | # See: https://bugs.chromium.org/p/gerrit/issues/detail?id=13899 |
| 171 | # Override can be removed once we update to > 3.3.2, as the fix for this is |
| 172 | # pending for the 3.3 branch. |
| 173 | # |
| 174 | # Built from v3.3.2 tag at df0507df5917fd78af01aee2495b2663530d52d1 |
| 175 | # Cherry-picked fix from 8731af3ae785efe9ecff7f3d04302b6b01c4fc0b |
| 176 | # Resulted in commit 5949bfb86e62a32a95293e339ed86bfe52a283e9 |
| 177 | # Built against Java 8: |
| 178 | # bazel build --java_toolchain //tools:error_prone_warnings_toolchain :release |
| 179 | # |
| 180 | http_file( |
| 181 | name = "org_q3k_gerrit_3_3_2_backport", |
| 182 | urls = [ |
| 183 | "https://object.ceph-waw3.hswaw.net/q3k-personal/d1839d691a8534f4ccb27bed9a98281e45972fbebec50d004cecd4d5da2b15a6.war", |
| 184 | ], |
| 185 | downloaded_file_path = "gerrit.war", |
| 186 | sha256 = "d1839d691a8534f4ccb27bed9a98281e45972fbebec50d004cecd4d5da2b15a6", |
| 187 | ) |
| 188 | |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 189 | # minecraft spigot/bukkit deps |
| 190 | # this uses rules_jvm_external vs gerrit's maven_jar because we need SNAPSHOT support |
| 191 | |
| 192 | http_archive( |
| 193 | name = "io_grpc_grpc_java", |
| 194 | sha256 = "446ad7a2e85bbd05406dbf95232c7c49ed90de83b3b60cb2048b0c4c9f254d29", |
| 195 | strip_prefix = "grpc-java-1.29.0", |
| 196 | url = "https://github.com/grpc/grpc-java/archive/v1.29.0.zip", |
| 197 | ) |
| 198 | |
| 199 | RULES_JVM_EXTERNAL_TAG = "3.0" |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 200 | |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 201 | RULES_JVM_EXTERNAL_SHA = "62133c125bf4109dfd9d2af64830208356ce4ef8b165a6ef15bbff7460b35c3a" |
| 202 | |
| 203 | http_archive( |
| 204 | name = "rules_jvm_external", |
| 205 | strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, |
| 206 | sha256 = RULES_JVM_EXTERNAL_SHA, |
| 207 | url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, |
| 208 | ) |
| 209 | |
| 210 | load("@rules_jvm_external//:defs.bzl", "maven_install") |
| 211 | load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_ARTIFACTS") |
| 212 | load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS") |
| 213 | |
| 214 | maven_install( |
| 215 | artifacts = [ |
Serge Bazanski | 55cc9ab | 2021-02-15 22:09:17 +0100 | [diff] [blame] | 216 | "org.spigotmc:spigot-api:1.15.2-R0.1-20200624.001023-124", |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 217 | "io.grpc:grpc-netty-shaded:1.29.0", |
| 218 | "io.grpc:grpc-services:1.29.0", |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 219 | ] + IO_GRPC_GRPC_JAVA_ARTIFACTS, |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 220 | generate_compat_repositories = True, |
| 221 | override_targets = IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS, |
| 222 | repositories = [ |
| 223 | "https://hub.spigotmc.org/nexus/content/repositories/snapshots", |
| 224 | "https://oss.sonatype.org/content/repositories/snapshots", |
| 225 | "https://repo1.maven.org/maven2/", |
| 226 | ], |
| 227 | maven_install_json = "//third_party/java:maven_install.json", |
| 228 | ) |
| 229 | |
| 230 | load("@maven//:defs.bzl", "pinned_maven_install") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 231 | |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 232 | pinned_maven_install() |
| 233 | |
| 234 | load("@maven//:compat.bzl", "compat_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 235 | |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 236 | compat_repositories() |
| 237 | |
| 238 | load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 239 | |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 240 | grpc_java_repositories() |
| 241 | |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 242 | # Gerrit OWNERS plugins external repositories |
| 243 | |
| 244 | git_repository( |
| 245 | name = "com_googlesource_gerrit_plugin_owners", |
| 246 | remote = "https://gerrit.googlesource.com/plugins/owners/", |
Serge Bazanski | faa326a | 2020-12-17 23:32:42 +0100 | [diff] [blame] | 247 | commit = "17817c9e319073c03513f9d5177b6142b8fd567b", |
Bartosz Stebel | 0e2057f | 2020-12-28 21:40:09 +0100 | [diff] [blame] | 248 | shallow_since = "1593642470 +0200", |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 249 | ) |
Serge Bazanski | faa326a | 2020-12-17 23:32:42 +0100 | [diff] [blame] | 250 | load("@com_googlesource_gerrit_plugin_owners//:external_plugin_deps_standalone.bzl", gerrit_owners_deps="external_plugin_deps_standalone") |
| 251 | gerrit_owners_deps() |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 252 | |
Sergiusz Bazanski | 356ea8b | 2019-07-21 23:56:43 +0200 | [diff] [blame] | 253 | # Go image repos for Docker |
| 254 | |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 255 | load("@io_bazel_rules_docker//go:image.bzl", go_image_repositories = "repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 256 | |
Sergiusz Bazanski | 356ea8b | 2019-07-21 23:56:43 +0200 | [diff] [blame] | 257 | go_image_repositories() |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 258 | |
| 259 | # oniguruma, with build from //third_party/oniguruma |
| 260 | |
| 261 | http_archive( |
| 262 | name = "com_github_kkos_oniguruma", |
| 263 | urls = ["https://github.com/kkos/oniguruma/releases/download/v6.9.5_rev1/onig-6.9.5_rev1.tar.gz"], |
| 264 | strip_prefix = "onig-6.9.5", |
| 265 | sha256 = "d33c849d1672af227944878cefe0a8fcf26fc62bedba32aa517f2f63c314a99e", |
| 266 | build_file = "@hscloud//third_party/oniguruma:BUILD.external", |
| 267 | ) |
| 268 | |
| 269 | # jq, with build from //third_party/jq |
| 270 | |
| 271 | http_archive( |
| 272 | name = "com_github_stedolan_jq", |
| 273 | urls = ["https://github.com/stedolan/jq/releases/download/jq-1.6/jq-1.6.tar.gz"], |
| 274 | strip_prefix = "jq-1.6", |
| 275 | sha256 = "5de8c8e29aaa3fb9cc6b47bb27299f271354ebb72514e3accadc7d38b5bbaa72", |
| 276 | build_file = "@hscloud//third_party/jq:BUILD.external", |
| 277 | ) |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 278 | |
Serge Bazanski | 1f06230 | 2021-06-01 22:24:34 +0000 | [diff] [blame] | 279 | # leaflet.js from NPM, used by //hswaw/site. |
| 280 | http_archive( |
| 281 | name = "com_npmjs_leaflet", |
| 282 | urls = ["https://registry.npmjs.org/leaflet/-/leaflet-1.7.1.tgz"], |
| 283 | sha256 = "43aca726165904ff73a34571c263b561cec94e6b9992a4414a600f3e984d1b03", |
| 284 | build_file_content = """ |
| 285 | filegroup( |
| 286 | name = "distfiles", |
| 287 | srcs = [ |
| 288 | "package/dist/leaflet.js", |
| 289 | "package/dist/leaflet.css", |
| 290 | "package/dist/images/layers-2x.png", |
| 291 | "package/dist/images/layers.png", |
| 292 | "package/dist/images/marker-icon-2x.png", |
| 293 | "package/dist/images/marker-icon.png", |
| 294 | "package/dist/images/marker-shadow.png", |
| 295 | ], |
| 296 | visibility = ["//visibility:public"], |
| 297 | ) |
| 298 | """, |
| 299 | ) |
| 300 | |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 301 | go_repository( |
| 302 | name = "com_github_gorilla_sessions", |
| 303 | importpath = "github.com/gorilla/sessions", |
| 304 | sum = "h1:DHd3rPN5lE3Ts3D8rKkQ8x/0kqfeNmBAaiSi+o7FsgI=", |
| 305 | version = "v1.2.1", |
| 306 | ) |
| 307 | |
| 308 | go_repository( |
| 309 | name = "com_github_boltdb_bolt", |
| 310 | importpath = "github.com/boltdb/bolt", |
| 311 | sum = "h1:JQmyP4ZBrce+ZQu0dY660FMfatumYDLun9hBCUVIkF4=", |
| 312 | version = "v1.3.1", |
| 313 | ) |
| 314 | |
| 315 | go_repository( |
| 316 | name = "com_github_gorilla_securecookie", |
| 317 | importpath = "github.com/gorilla/securecookie", |
| 318 | sum = "h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ=", |
| 319 | version = "v1.1.1", |
| 320 | ) |