constellation/hack/bazel-deps-mirror
Thomas Tendyck 3b9f7530fb license: change headers
find -name '*.go' -exec sed -i 's/SPDX-License-Identifier: AGPL-3.0-only/SPDX-License-Identifier: BUSL-1.1/' {} +
2025-07-15 23:34:48 +02:00
..
internal license: change headers 2025-07-15 23:34:48 +02:00
bazel-deps-mirror.go license: change headers 2025-07-15 23:34:48 +02:00
BUILD.bazel deps: convert zap to slog (#2825) 2024-02-08 14:20:01 +00:00
check.go license: change headers 2025-07-15 23:34:48 +02:00
fix.go license: change headers 2025-07-15 23:34:48 +02:00
README.md bazel: enable bzlmod 2024-05-23 09:48:04 +02:00
upgrade.go license: change headers 2025-07-15 23:34:48 +02:00

Bazel deps mirror

This directory contains tooling to automatically mirror the dependencies of a Bazel project into the Constellation CDN at https://cdn.confidential.cloud/.

The tool searches for various rules in the WORKSPACE.bzlmod file and all loaded .bzl files. It has the following commands:

  • check: checks if the dependencies all have a mirror URL and optionally checks if the mirror really returns the expected file
  • mirror: mirrors all dependencies that don't have a mirror URL yet. Also normalizes the urls attribute of rules