Update WORKSPACE (#5588)

* Update WORKSPACE

Same purpose as #5585, but a bit less intrusive perhaps.

* Update WORKSPACE

Add `rules_license`, needed by `platforms`.
This commit is contained in:
Cassandra Beckley 2024-02-16 15:09:08 -08:00 committed by GitHub
parent 16af142c15
commit 7da2c941f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,6 +6,26 @@ http_archive(
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/main.zip"],
)
# Override bazel's default `platforms`, since googletest requires a newer version. This can be removed once we use a newer Bazel version.
http_archive(
name = "platforms",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.8/platforms-0.0.8.tar.gz",
],
sha256 = "8150406605389ececb6da07cbcb509d5637a3ab9a24bc69b1101531367d89d74",
)
# `platforms` needs `rules_license` on Windows. This can be removed if `platforms` above is removed.
http_archive(
name = "rules_license",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_license/releases/download/0.0.8/rules_license-0.0.8.tar.gz",
"https://github.com/bazelbuild/rules_license/releases/download/0.0.8/rules_license-0.0.8.tar.gz",
],
sha256 = "241b06f3097fd186ff468832150d6cc142247dc42a32aaefb56d0099895fd229",
)
local_repository(
name = "spirv_headers",
path = "external/spirv-headers",