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

Issue 1406053003: Error out in `gclient config` if --name is relative (Closed)

Created:
5 years, 2 months ago by agable
Modified:
5 years, 1 month ago
Reviewers:
Lei Zhang, iannucci
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Error out in `gclient config` if --name is relative This helps prevent behavior such as setting '--name .' so that the .gclient file contains '.' as the name of the solution, and the .gclient file ends up a sibling of the .git file, rather than a sibling of the git checkout's containing directory. R=iannucci@chromium.org, thestig@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=297343

Patch Set 1 #

Total comments: 2

Patch Set 2 : Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M gclient.py View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
agable
5 years, 2 months ago (2015-10-20 00:51:17 UTC) #1
Lei Zhang
lgtm Would you mind holding off on landing this until we had a chance to ...
5 years, 2 months ago (2015-10-20 00:55:21 UTC) #2
agable
Yep absolutely willing to hold off. I tried to also enforce it at a deeper ...
5 years, 2 months ago (2015-10-20 01:05:27 UTC) #3
iannucci
fwiw, lgtm
5 years, 2 months ago (2015-10-20 01:07:12 UTC) #4
agable
Seems like pdfium is all switched over. Happy to land this now?
5 years, 1 month ago (2015-10-27 20:25:26 UTC) #5
Lei Zhang
On 2015/10/27 20:25:26, agable wrote: > Seems like pdfium is all switched over. Happy to ...
5 years, 1 month ago (2015-10-27 20:56:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1406053003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1406053003/20001
5 years, 1 month ago (2015-10-27 20:58:23 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=297343
5 years, 1 month ago (2015-10-27 21:02:50 UTC) #10
mtklein_C
On 2015/10/27 at 21:02:50, commit-bot wrote: > Committed patchset #2 (id:20001) as http://src.chromium.org/viewvc/chrome?view=rev&revision=297343 Hey, we ...
5 years, 1 month ago (2015-11-03 13:27:01 UTC) #11
agable
On 2015/11/03 at 13:27:01, mtklein wrote: > On 2015/10/27 at 21:02:50, commit-bot wrote: > > ...
5 years, 1 month ago (2015-11-03 17:44:20 UTC) #12
Jamie Madill
On 2015/11/03 17:44:20, agable wrote: > On 2015/11/03 at 13:27:01, mtklein wrote: > > On ...
5 years, 1 month ago (2015-11-05 15:02:17 UTC) #13
mtklein
On 2015/11/03 at 17:44:20, agable wrote: > On 2015/11/03 at 13:27:01, mtklein wrote: > > ...
5 years, 1 month ago (2015-11-05 20:45:47 UTC) #14
agable
On 2015/11/05 at 20:45:47, mtklein wrote: > > Ah, this all SGTM for Skia. We ...
5 years, 1 month ago (2015-11-05 20:47:04 UTC) #15
mtklein
On 2015/11/05 at 20:47:04, agable wrote: > On 2015/11/05 at 20:45:47, mtklein wrote: > > ...
5 years, 1 month ago (2015-11-05 20:51:48 UTC) #16
agable
5 years, 1 month ago (2015-11-05 21:03:36 UTC) #17
Message was sent while issue was closed.
On 2015/11/05 at 20:51:48, mtklein wrote:
> On 2015/11/05 at 20:47:04, agable wrote:
> > On 2015/11/05 at 20:45:47, mtklein wrote:
> > > 
> > > Ah, this all SGTM for Skia.  We don't really use anything from gclient
beyond just syncing DEPS.  I think we can just stop using gclient and sync our
DEPS with a Python script.
> > 
> > I mean, please don't *actually* do that. gclient is the python script that
you want to use to sync DEPS. The path that I laid out is the path that we hope
to take gclient down in the near future; please don't roll your own :)
> 
> No, really, I mean to actually do that.  `git clone foo && cd foo && gclient
sync` is exactly what we were doing before, and if we can't do that anymore, the
least disruptive change is something like `git clone foo && cd foo &&
./not-gclient sync`.

And how were you doing that? The skia repo doesn't appear to have a .gclient
file checked in, so you have to run gclient config at some point. (And if you
do/did have a .gclient file checked in, I'm a bit terrified.)

Additionally, I'm confused when you say you can't use your old system anymore.
You can. All this change did was prevent you from running 'gclient config
--name=.' Already in-place checkouts should be completely unaffected by this
change.

If that's not true, I'm happy to revert it. In the mean time, I'd like to work
with you to bring Skia's repository layout in line with what gclient expects.

Powered by Google App Engine
This is Rietveld 408576698