Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
/bin/bash does not exist on certain systems
Bazel and rules_scala refer to `/bin/bash` which does not exist on certain systems. In particular on [NixOS](https://nixos.org/) where the issue was discovered. Replacing `/bin/bash` by `/usr/bin/env bash` resolves the issue. On NixOS this problem is usually circumvented by the corresponding package description for bazel patching these paths. However, rules_scala downloads the `java_stub_template` directly from the GitHub repository. See the corresponding [issue on rules_scala][rules_scala_issue] for more information. This PR replaces `/bin/bash` by `/usr/bin/env bash` in `java_stub_template`. [rules_scala_issue]: bazelbuild/rules_scala#595 Closes #5979. PiperOrigin-RevId: 212782646
- Loading branch information