Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Issue 1760353002: Make tools/run_hooks.py work when depot_tools is not in PATH (Closed)

Created:
4 years, 9 months ago by jamesr
Modified:
4 years, 9 months ago
CC:
mojo-reviews_chromium.org, nlacasse
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Make tools/run_hooks.py work when depot_tools is not in PATH It should be possible to create and build from a Mojo checkout even when depot_tools is not in the PATH, even though many common development workflows require it. This teaches tools/run_hooks.py to add a default depot_tools location to the PATH that hooks run in so that a jiri checkout can execute hooks without PATH modifications. R=kulakowski@chromium.org, lanechr@google.com, viettrungluu@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/aab2a72a35eba483ac95207d3df1e808899d0573

Patch Set 1 #

Total comments: 1

Patch Set 2 : unconditionally add default_depot_tools_path to PATH #

Patch Set 3 : always append path and absolutify it #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M tools/run_hooks.py View 1 2 1 chunk +8 lines, -1 line 1 comment Download

Messages

Total messages: 12 (4 generated)
jamesr
4 years, 9 months ago (2016-03-04 02:23:45 UTC) #2
jamesr
Nick hit this when playing with the mojo jiri config. While every mojo dev will ...
4 years, 9 months ago (2016-03-04 02:24:18 UTC) #3
kulakowski
not trung, but lgtm
4 years, 9 months ago (2016-03-04 17:28:19 UTC) #5
lanechr
https://codereview.chromium.org/1760353002/diff/1/tools/run_hooks.py File tools/run_hooks.py (right): https://codereview.chromium.org/1760353002/diff/1/tools/run_hooks.py#newcode30 tools/run_hooks.py:30: if env["PATH"].find("depot_tools") == -1: why not just add the ...
4 years, 9 months ago (2016-03-04 17:35:41 UTC) #7
jamesr
OK, done.
4 years, 9 months ago (2016-03-04 19:26:14 UTC) #8
lanechr
On 2016/03/04 19:26:14, jamesr wrote: > OK, done. lgtm (also not trung)
4 years, 9 months ago (2016-03-04 19:29:26 UTC) #9
viettrungluu
lgtm (not trung either) https://codereview.chromium.org/1760353002/diff/40001/tools/run_hooks.py File tools/run_hooks.py (right): https://codereview.chromium.org/1760353002/diff/40001/tools/run_hooks.py#newcode32 tools/run_hooks.py:32: env["PATH"] = env["PATH"] + ":" ...
4 years, 9 months ago (2016-03-04 20:46:10 UTC) #10
jamesr
4 years, 9 months ago (2016-03-04 20:58:14 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
aab2a72a35eba483ac95207d3df1e808899d0573 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698