fix: fallback to /usr/bin/env if env is not in PATH by rickeylev · Pull Request #3577 · bazel-contrib/rules_python
This fixes an issue where the bootstrap script would fail if env was not in the PATH, which is the case on NixOS. The script now checks if env exists, and if not, falls back to /usr/bin/env. Fixes bazel-contrib#3575
aignas pushed a commit to aignas/rules_python that referenced this pull request
Feb 23, 2026This fixes an issue where the bootstrap script would fail if env was not in the PATH, which is the case on NixOS, or when Bazel's strict action env is enabled. To fix, the bootstrap checks if env exists, and if not, falls back to /usr/bin/env. Fixes bazel-contrib#3575
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters