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

Issue 106403003: fetch.py: Use '--nohooks' when calling 'gclient sync' (Closed)

Created:
7 years ago by digit1
Modified:
7 years ago
CC:
chromium-reviews, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Visibility:
Public.

Description

fetch.py: Add '--nohooks' option. 'fetch chromium' will fail if the build dependencies are not already installed on the host machine, because it runs 'gclient sync' which, by default, will run hooks that will try to run build/gyp_chromium (which will then fail). This introduces a --nohooks option that solve the problem by allowing the user to do the following: 1) fetch --nohooks <recipe> 2) src/build/install-build-deps.sh 3) fetch <recipe> BUG=325795 TEST=Run 'fetch --nohooks chromium' in a temporary 'clean' chroot directory. R=maruel@chromium.org,jochen@chromium.org,scottmg@chromium.org,agable@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=240680

Patch Set 1 #

Patch Set 2 : Add --nohooks option to fetch.py #

Total comments: 5

Patch Set 3 : Address Dirk's notes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -22 lines) Patch
M fetch.py View 1 2 15 chunks +43 lines, -22 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
digit1
7 years ago (2013-12-05 11:44:04 UTC) #1
M-A Ruel
Deflecting to Robbie.
7 years ago (2013-12-05 14:45:17 UTC) #2
agable
On 2013/12/05 14:45:17, M-A Ruel wrote: > Deflecting to Robbie. See my comments here: https://codereview.chromium.org/107703002/, ...
7 years ago (2013-12-09 22:22:14 UTC) #3
digit1
On 2013/12/09 22:22:14, Aaron Gable wrote: > On 2013/12/05 14:45:17, M-A Ruel wrote: > > ...
7 years ago (2013-12-11 13:47:47 UTC) #4
agable
I think this LGTM. The purist in me dislikes giving the fetch command line explicit ...
7 years ago (2013-12-11 17:30:12 UTC) #5
Dirk Pranke
lgtm. A couple of minor issues that could be cleaned up. https://chromiumcodereview.appspot.com/106403003/diff/20001/fetch.py File fetch.py (right): ...
7 years ago (2013-12-11 19:53:23 UTC) #6
digit1
https://chromiumcodereview.appspot.com/106403003/diff/20001/fetch.py File fetch.py (right): https://chromiumcodereview.appspot.com/106403003/diff/20001/fetch.py#newcode125 fetch.py:125: self.run_gclient(gclient_cmd) It's either a string or a tuple, and ...
7 years ago (2013-12-13 15:26:21 UTC) #7
Dirk Pranke
On 2013/12/13 15:26:21, digit1 wrote: > https://chromiumcodereview.appspot.com/106403003/diff/20001/fetch.py > File fetch.py (right): > > https://chromiumcodereview.appspot.com/106403003/diff/20001/fetch.py#newcode125 > ...
7 years ago (2013-12-13 16:59:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/digit@chromium.org/106403003/40001
7 years ago (2013-12-13 17:05:33 UTC) #9
commit-bot: I haz the power
7 years ago (2013-12-13 17:07:36 UTC) #10
Message was sent while issue was closed.
Change committed as 240680

Powered by Google App Engine
This is Rietveld 408576698