| workspace(name = "io_bazel_stardoc") | |
| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | |
| load(":setup.bzl", "stardoc_repositories") | |
| stardoc_repositories() | |
| ### INTERNAL ONLY - lines after this are not included in the release packaging. | |
| # | |
| # Include dependencies which are only needed for development of Stardoc here. | |
| load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") | |
| # Needed for generating the Stardoc release binary. | |
| git_repository( | |
| name = "io_bazel", | |
| commit = "4e551f5a0c4caae251648104df40ccbb59951264", # Feb 09, 2022 | |
| remote = "https://github.com/bazelbuild/bazel.git", | |
| shallow_since = "1644438074 -0800", | |
| ) | |
| # The following binds are needed for building protobuf java libraries. | |
| bind( | |
| name = "guava", | |
| actual = "@io_bazel//third_party:guava", | |
| ) | |
| bind( | |
| name = "gson", | |
| actual = "@io_bazel//third_party:gson", | |
| ) | |
| bind( | |
| name = "error_prone_annotations", | |
| actual = "@io_bazel//third_party:error_prone_annotations", | |
| ) | |
| # Needed only because of java_tools. | |
| http_archive( | |
| name = "rules_cc", | |
| sha256 = "36fa66d4d49debd71d05fba55c1353b522e8caef4a20f8080a3d17cdda001d89", | |
| strip_prefix = "rules_cc-0d5f3f2768c6ca2faca0079a997a97ce22997a0c", | |
| urls = [ | |
| "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip", | |
| "https://github.com/bazelbuild/rules_cc/archive/0d5f3f2768c6ca2faca0079a997a97ce22997a0c.zip", | |
| ], | |
| ) | |
| # Needed as a transitive dependency of @io_bazel | |
| git_repository( | |
| name = "rules_python", | |
| commit = "4b84ad270387a7c439ebdccfd530e2339601ef27", | |
| remote = "https://github.com/bazelbuild/rules_python.git", | |
| shallow_since = "1564776078 -0400", | |
| ) | |
| # Needed for //distro:__pkg__ and as a transitive dependency of @io_bazel | |
| http_archive( | |
| name = "rules_pkg", | |
| sha256 = "a89e203d3cf264e564fcb96b6e06dd70bc0557356eb48400ce4b5d97c2c3720d", | |
| urls = [ | |
| "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz", | |
| "https://github.com/bazelbuild/rules_pkg/releases/download/0.5.1/rules_pkg-0.5.1.tar.gz", | |
| ], | |
| ) | |
| load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") | |
| rules_pkg_dependencies() | |
| # Needed as a transitive dependency of @io_bazel | |
| http_archive( | |
| name = "rules_proto", | |
| sha256 = "9850fcf6ad40fa348e6f13b2cfef4bb4639762f804794f2bf61d988f4ba0dae9", | |
| strip_prefix = "rules_proto-4.0.0-3.19.2-2", | |
| urls = [ | |
| "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0-3.19.2-2.tar.gz", | |
| ], | |
| ) | |
| # Needed only for testing stardoc across local-repository bounds. | |
| local_repository( | |
| name = "local_repository_test", | |
| path = "test/testdata/local_repository_test", | |
| ) | |
| load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains") | |
| rules_proto_dependencies() | |
| rules_proto_toolchains() |