constellation/hack/bazel-deps-mirror
Malte Poll 827c4f548d
bazel: deps mirror (#1522)
bazel-deps-mirror is an internal tools used to upload external dependencies
that are referenced in the Bazel WORKSPACE to the Edgeless Systems' mirror.

It also normalizes deps rules.

* hack: add tool to mirror Bazel dependencies
* hack: bazel-deps-mirror tests
* bazel: add deps mirror commands
* ci: upload Bazel dependencies on renovate PRs
* update go mod
* run deps_mirror_upload


Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
2023-03-30 09:41:56 +02:00
..
internal bazel: deps mirror (#1522) 2023-03-30 09:41:56 +02:00
bazel-deps-mirror.go bazel: deps mirror (#1522) 2023-03-30 09:41:56 +02:00
BUILD.bazel bazel: deps mirror (#1522) 2023-03-30 09:41:56 +02:00
check.go bazel: deps mirror (#1522) 2023-03-30 09:41:56 +02:00
fix.go bazel: deps mirror (#1522) 2023-03-30 09:41:56 +02:00
README.md bazel: deps mirror (#1522) 2023-03-30 09:41:56 +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.bazel 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