Skip to content

Commit

Permalink
replace runfiles interpreter with /usr/bin/env bash (#59)
Browse files Browse the repository at this point in the history
```
replace runfiles interpreter with `/usr/bin/env bash`

This replaces the interpreter set in
`//internal:constants.bzl%RUNFILES_PREFIX` with `/usr/bin/env bash`,
which resolves an issue under NixOS and other systems like it, which do
not have a `/bin/bash`.

Closes: #58
```
  • Loading branch information
sudoforge authored Jul 15, 2024
1 parent c60714f commit 75fcb3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/constants.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# https://github.com/bazelbuild/bazel/blob/4ff441b13db6b6f5d5d317881c6383f510709b19/tools/bash/runfiles/runfiles.bash#L50-L64

RUNFILES_PREFIX = """#!/bin/bash
RUNFILES_PREFIX = """#!/usr/bin/env bash
# --- begin runfiles.bash initialization v2 ---
# Copy-pasted from the Bazel Bash runfiles library v2.
Expand Down

0 comments on commit 75fcb3d

Please sign in to comment.