Skip to content

Commit

Permalink
Update paths.bzl (#735)
Browse files Browse the repository at this point in the history
Add a more helpful error when runfiles.bash can't be found.
  • Loading branch information
alexeagle authored Jan 27, 2024
1 parent 58e3d28 commit f0a19f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paths.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
source "$0.runfiles/$f" 2>/dev/null || \
source "$(grep -sm1 "^$f " "$0.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
source "$(grep -sm1 "^$f " "$0.exe.runfiles_manifest" | cut -f2- -d' ')" 2>/dev/null || \
{ echo>&2 "ERROR: cannot find $f"; exit 1; }; f=; set -e
{ echo>&2 "ERROR: runfiles.bash initializer cannot find $f. An executable rule may have forgotten to expose it in the runfiles, or the binary may require RUNFILES_DIR to be set."; exit 1; }; f=; set -e
# --- end runfiles.bash initialization v3 ---
"""

0 comments on commit f0a19f5

Please sign in to comment.