dmd,druntime,phobos,etc as submodules
qznc via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 28 02:17:12 PDT 2016
On Tuesday, 28 June 2016 at 09:13:40 UTC, qznc wrote:
> I don't believe a root repo makes sense.
>
> Submodules should be used to model actual dependencies.
> For example, phobos does not depend on dmd, since it could be
> ldc or gdc as well.
>
> Some dependencies are: dmd depends on druntime and phobos;
> phobos depends on druntime. However, you cannot give dmd *and*
> phobos a druntime submodule, since that would duplicate it.
>
> Currently, the assumed directory structure is to have dmd,
> phobos, druntime side by side. Using my submodules philosophy
> would change that to a nested structure. Probably not worth the
> hassle.
I forgot to mention the advantage of the nested submodules
approach: You can bisect for bugs. You cannot do that with
completely separate repos, since there is no way to know which
revisions work together.
More information about the Digitalmars-d
mailing list