Thanks Fred for looking into this.
> sender: "Andrew Sutherland" <
asuth...@asutherland.org>
> On 05/16/2013 12:03 AM, Tim Chien wrote:
>> Quick question: does |repo| supports a hybrid approach? Say if I get a
>> repo w/ submodule and I have |repo| to pull it, would the submodules
>> got pulled too?
> I've looked at the source to some of repo (from
>
https://gerrit.googlesource.com/git-repo/+/master) and the code seems to
> agree with this. Specifically, project.py has logic that parses
> .gitmodules and explicitly has a concept of whether a project
> "is_derived": "False if the project was explicitly defined in the
> manifest; True if the project is a discovered submodule."
Thanks. The reason I asked this question is because I want to know if
we could get the best of the both worlds.
We certainly have use cases in Gaia itself where it would make sense
to use submodule some times and use |repo| some other times.
(hint: use submodule when you don't need the flexibility given by
|repo| to avoid complexity)
On Sat, Jun 15, 2013 at 3:34 AM, Andrew Sutherland
<
asuth...@asutherland.org> wrote:
> Now that 1.1 is done-ish and we have some breathing space, this seems like a
> good time to pursue a cleanup like this.
>
> Vivien, Tim, you are the module co-owners of Gaia; is this something you
> would approve if we pursued this more aggressively? The gaia productivity
> team is meeting early next week in SF to focus on making the e-mail app
> something that does not require major activation energy to hack on; this is
> something we can mini-sprint on as an important first step.
I will not speak for Vivien, but I agree with Andrew that it's time to
fire up and move on.
As of |repo| v.s. submodule, I guess the choices is not important
because the question answered means they could co-exist.
We need an action plan here before the actual work.
Which directory we are currently looking at to turn into submodules,
and which directory should be turn into |repo| repos?
On top my head, I could think of a few shared libraries (building
blocks, webL10n, etc.) which we should turn into submodules, but I
couldn't think of any that should be turn into |repo| repos given the
flexibility required (maybe app-to-build config?) I don't think I
understand |repo| well enough to answer that.
For e-mail libraries, given the fact we run Makefile of every app, it
could certainly be set-up in the app-specific Makefile.
PS. Will we eventually require |repo| command for building Gaia just
like we require |make|? It shouldn't be hard to get than gjslint right
:P?
--
Tim Guan-tin Chien, Engineering Manager and Front-end Lead, Firefox
OS, Mozilla Corp. (Taiwan)