refactor(bazel): use configured Rust toolchain root

This commit is contained in:
2026-08-31 15:00:27 -04:00
parent 2234db4c9b
commit 85b49c5378
6 changed files with 154 additions and 155 deletions

View File

@@ -1,8 +1,8 @@
def require(repository_ctx, executable):
path = repository_ctx.which(executable)
if path == None:
fail("{} must be available in PATH.".format(executable))
return path
def require_env(repository_ctx, variable):
value = repository_ctx.os.environ.get(variable)
if not value:
fail("{} must be set.".format(variable))
return value
def execute(repository_ctx, arguments):