Skip to content

Commit

Permalink
Set all runfiles environment variables for Gazelle (#1632)
Browse files Browse the repository at this point in the history
This ensures that Gazelle itself or a language linked into it can discover runfiles no matter whether it needs `RUNFILES_MANIFEST_FILE` or `RUNFILES_DIR`. The latter is especially relevant for Python, which is run as part of the Gazelle Python plugin.
  • Loading branch information
fmeum authored Sep 15, 2023
1 parent f9a115f commit 077aea0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/gazelle.bash.in
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ if [[ "${is_fix_or_update:-}" == "true" ]] && [[ -n $REPO_CONFIG_PATH ]]; then
ARGS=("${ARGS[0]}" "-repo_config" "$(rlocation "$REPO_CONFIG_PATH")" "${ARGS[@]:1}")
fi

runfiles_export_envvars
"$gazelle_path" "${ARGS[@]}"

0 comments on commit 077aea0

Please sign in to comment.