Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add /usr/local/bin to default PATH under strict action env
With this change, when --incompatible_strict_action_env is on but no override for PATH is available, the default PATH will include /usr/local/bin. This allows Python 3 to be on PATH on mac, which is important for the autodetecting Python toolchain. Without this change, users can still use --action_env=PATH[=...], but that doesn't work in all cases (e.g. genrules that are themselves built in the host config). Fixes bazelbuild#8536. Confirmed that this fixes the failure seen in https://bugs.chromium.org/p/gerrit/issues/detail?id=10953. RELNOTES: When `--incompatible_strict_action_env` is enabled, the default `PATH` now includes `/usr/local/bin`. PiperOrigin-RevId: 252696581
- NINJA-build2
- NINJA-build3-deps
- NINJA-introduce-build
- NINJA-list-output-symlinks
- NINJA-newline
- add-file-channel
- add-non-symlink-functionality
- add-pool-flag-variable
- add-test-for-pr-8933
- correct-git-repo-dir
- demonstrate-symlink-action-not-failing
- external-demonstrate-glob
- file-channel-after
- fix-decl-assembler
- fix-git-error
- fix-repository-name-assertion
- improve-test-summary
- n-p-rules
- nija-execute-only-requested2
- ninja-actions
- ninja-allow-no-value-for-var
- ninja-always-dirty
- ninja-assert-symlink-target-exists
- ninja-check-included-files
- ninja-create-source-artifact
- ninja-directory-inputs
- ninja-execute-only-requested
- ninja-fix-buffer-offsets
- ninja-fix-rsp-file
- ninja-flag
- ninja-hash-in-filename
- ninja-immutable-scope
- ninja-include-cycle
- ninja-not-stop-text-on-hash
- ninja-only-graph
- ninja-parent-child-scopes
- ninja-parse-and-resolve
- ninja-parsers-2
- ninja-phony-actions-nestedset
- ninja-reduce-graph
- ninja-report-whole-command
- ninja-resolve-scope
- ninja-resolve-scope-without-expand
- ninja-resolve-scope2
- ninja-rule-variables
- ninja-target-newline
- ninja-target-newline2
- ninja-target2
- parse-file
- parse-file-bb
- refactor-git
- refactor-git-fetch
- remove-test
- return-test
- see-what-fails
- small-fix
- trace-loading