• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2set -eux
3
4# Normalize working directory to root of repository.
5cd "$(dirname "${BASH_SOURCE[0]}")"/..
6
7# Re-generates all files which may need to be re-generated after changing crate_universe.
8for target in $(bazel query 'kind("crates_vendor", //...)'); do
9  bazel run "${target}"
10done
11
12for d in examples/crate_universe/vendor_*; do
13  (cd "${d}" && CARGO_BAZEL_REPIN=true bazel run :crates_vendor)
14done
15
16for d in examples/crate_universe* test/no_std
17do
18  (cd "${d}" && CARGO_BAZEL_REPIN=true bazel query //... >/dev/null)
19done
20
21# `nix_cross_compiling` special cased as `//...` will invoke Nix.
22(cd examples/nix_cross_compiling && CARGO_BAZEL_REPIN=true bazel query @crate_index//... >/dev/null)
23