1workspace(name = "io_bazel_stardoc") 2 3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 4load(":setup.bzl", "stardoc_repositories") 5 6stardoc_repositories() 7 8### INTERNAL ONLY - lines after this are not included in the release packaging. 9# 10# Include dependencies which are only needed for development of Stardoc here. 11 12load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") 13 14# Needed for generating the Stardoc release binary. 15git_repository( 16 name = "io_bazel", 17 commit = "901c75e459d737220cb8e29649c1b6ba24e2221d", # Sep 27, 2022 18 remote = "https://github.com/bazelbuild/bazel.git", 19 shallow_since = "1664304093 -0700", 20) 21 22# The following binds are needed for building protobuf java libraries. 23bind( 24 name = "guava", 25 actual = "@io_bazel//third_party:guava", 26) 27 28bind( 29 name = "gson", 30 actual = "@io_bazel//third_party:gson", 31) 32 33bind( 34 name = "error_prone_annotations", 35 actual = "@io_bazel//third_party:error_prone_annotations", 36) 37 38# Needed only because of java_tools. 39http_archive( 40 name = "rules_cc", 41 sha256 = "36fa66d4d49debd71d05fba55c1353b522e8caef4a20f8080a3d17cdda001d89", 42 strip_prefix = "rules_cc-0d5f3f2768c6ca2faca0079a997a97ce22997a0c", 43 urls = [ 44 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip", 45 "https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip", 46 ], 47) 48 49# Needed as a transitive dependency of @io_bazel 50git_repository( 51 name = "rules_python", 52 commit = "4b84ad270387a7c439ebdccfd530e2339601ef27", 53 remote = "https://github.com/bazelbuild/rules_python.git", 54 shallow_since = "1564776078 -0400", 55) 56 57# Needed for //distro:__pkg__ and as a transitive dependency of @io_bazel 58http_archive( 59 name = "rules_pkg", 60 sha256 = "8a298e832762eda1830597d64fe7db58178aa84cd5926d76d5b744d6558941c2", 61 urls = [ 62 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz", 63 "https://github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz", 64 ], 65) 66 67load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") 68 69rules_pkg_dependencies() 70 71# Needed as a transitive dependency of @io_bazel 72http_archive( 73 name = "rules_proto", 74 sha256 = "9850fcf6ad40fa348e6f13b2cfef4bb4639762f804794f2bf61d988f4ba0dae9", 75 strip_prefix = "rules_proto-4.0.0-3.19.2-2", 76 urls = [ 77 "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0-3.19.2-2.tar.gz", 78 ], 79) 80 81# Needed only for testing stardoc across local-repository bounds. 82local_repository( 83 name = "local_repository_test", 84 path = "test/testdata/local_repository_test", 85) 86 87load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") 88 89rules_proto_dependencies() 90 91rules_proto_toolchains() 92