Update paths.bzl (#735)

Add a more helpful error when runfiles.bash can't be found.
This commit is contained in:
Alex Eagle 2024-01-27 12:26:12 -08:00 committed by Greg Magolan
parent 2e86d10332
commit 8c95f4aef6
No known key found for this signature in database
GPG Key ID: 3ED3220F08EA5070
1 changed files with 1 additions and 1 deletions

View File

@ -25,6 +25,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 ---
"""