bazelbuild/bazel

@bazel_tools//tools/sh:local_sh_toolchain is missing any constraints to make it local

オープン

#21,932 opened on 2024/04/09

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Java (4,465 件のフォーク)batch import
P2help wantedteam-Configurabilityteam-ExternalDepstype: feature request

Repository metrics

Stars
 (25,384 個のスター)
PR merge metrics
 (平均マージ 22d 20h) (30d で 77 merged PRs)

説明

@bazel_tools//tools/sh:sh_configure is a repo rule that detects and configures sh_toolchain (path to bash), by querying the local host.

The guts of the generated repo rule are: https://github.com/bazelbuild/bazel/blob/0f760395e04cb0accb912be128b4f363663e8d30/tools/sh/sh_configure.bzl#L59-L69

I think this needs at least exec_compatible_with = HOST_CONSTRAINTS or else this path will incorrectly be used on other exec platforms. (HOST_CONSTRAINTS isn't specific enough, but it's the best we've got.)

コントリビューターガイド