1workspace(name = "bazel_skylib") 2 3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 4load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") 5 6http_archive( 7 name = "rules_pkg", 8 urls = [ 9 "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.5/rules_pkg-0.2.5.tar.gz", 10 "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.5/rules_pkg-0.2.5.tar.gz", 11 ], 12 sha256 = "352c090cc3d3f9a6b4e676cf42a6047c16824959b438895a76c2989c6d7c246a", 13) 14load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") 15rules_pkg_dependencies() 16 17maybe( 18 name = "bazel_federation", 19 repo_rule = http_archive, 20 sha256 = "b10529fcf8a464591e845588348533981e948315b706183481e0d076afe2fa3c", 21 url = "https://github.com/bazelbuild/bazel-federation/releases/download/0.0.2/bazel_federation-0.0.2.tar.gz", 22) 23 24load("@bazel_federation//:repositories.bzl", "bazel_skylib_deps", "rules_go") 25 26bazel_skylib_deps() 27 28rules_go() 29 30load("@bazel_federation//setup:bazel_skylib.bzl", "bazel_skylib_setup") 31 32bazel_skylib_setup() 33 34load("@bazel_federation//setup:rules_go.bzl", "rules_go_setup") 35 36rules_go_setup() 37 38# Below this line is for documentation generation only, 39# and should thus not be included by dependencies on 40# bazel-skylib. 41 42load("//:internal_deps.bzl", "bazel_skylib_internal_deps") 43 44bazel_skylib_internal_deps() 45 46load("//:internal_setup.bzl", "bazel_skylib_internal_setup") 47 48bazel_skylib_internal_setup() 49 50maybe( 51 name = "rules_cc", 52 repo_rule = http_archive, 53 sha256 = "b4b2a2078bdb7b8328d843e8de07d7c13c80e6c89e86a09d6c4b424cfd1aaa19", 54 strip_prefix = "rules_cc-cb2dfba6746bfa3c3705185981f3109f0ae1b893", 55 urls = [ 56 "https://mirror.bazel.build/github.com/bazelbuild/rules_cc/archive/cb2dfba6746bfa3c3705185981f3109f0ae1b893.zip", 57 "https://github.com/bazelbuild/rules_cc/archive/cb2dfba6746bfa3c3705185981f3109f0ae1b893.zip", 58 ], 59) 60 61# Provide a repository hint for Gazelle to inform it that the go package 62# github.com/bazelbuild/rules_go is available from io_bazel_rules_go and it 63# doesn't need to duplicatively fetch it. 64# gazelle:repository go_repository name=io_bazel_rules_go importpath=github.com/bazelbuild/rules_go 65http_archive( 66 name = "bazel_gazelle", 67 sha256 = "bfd86b3cbe855d6c16c6fce60d76bd51f5c8dbc9cfcaef7a2bb5c1aafd0710e8", 68 urls = [ 69 "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.21.0/bazel-gazelle-v0.21.0.tar.gz", 70 "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.21.0/bazel-gazelle-v0.21.0.tar.gz", 71 ], 72) 73# Another Gazelle repository hint. 74# gazelle:repository go_repository name=bazel_gazelle importpath=github.com/bazelbuild/bazel-gazelle/testtools 75 76load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") 77 78gazelle_dependencies() 79