Skip to content

Commit

Permalink
gazelle: call set_groot when invoked by Bazel (bazel-contrib#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayconrod authored Dec 5, 2018
1 parent cb1abf5 commit c0880f7
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 @@ -89,6 +89,7 @@ if [ "$is_bazel_run" = true ]; then
# If the script was invoked by "bazel run", jump out of the execroot, into
# the workspace before running Gazelle.
# TODO(jayconrod): detect when a command can't be run this way.
set_goroot
gazelle_short_path=$(find_runfile "$GAZELLE_SHORT_PATH")
if [ -z "$gazelle_short_path" ]; then
echo "error: could not locate gazelle binary" >&2
Expand Down

0 comments on commit c0880f7

Please sign in to comment.