bazelbuild / bazelbuild/bazel

experimental_strict_action_env doesn't do the right thing with remote builds

Open
#6,392 13 comments 1 reaction 0 assignees View on GitHub
P2 team-Configurability type: feature request
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 20h
Merged PRs (30d)
72

Description

`BazelRuleClassProvider.java` contains the following TODO:

// TODO(ulfjack): The default PATH should be set from the exec platform, which may be different
// from the local machine. For now, this can be overridden with --action_env=PATH=, so
// at least there's a workaround.

This issue causes Bazel to set `PATH` to sane default for, say, Windows, even when making use of a Linux-based remote build cluster. Users must currently pass `--action_env=PATH=/bin:/usr/bin` in addition to `--experimental_strict_action_env` to make Bazel functional when doing builds on Linux from a Windows host.

In https://github.com/bazelbuild/bazel/pull/6263, it was suggested that a separate bug for this is filed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.