From the cycle "Topic of the day" - .gitignore: how big is too big?

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 23 09:55:27 PDT 2015


On Mon, Mar 23, 2015 at 09:14:15AM +0100, Jacob Carlborg via Digitalmars-d wrote:
> On 2015-03-22 02:15, Andrei Alexandrescu wrote:
> >I've left a comment recently at
> >https://github.com/D-Programming-Language/phobos/pull/3087.
> >
> >So what's the deal with that? Whenever a new tool leaves some trash,
> >do we chalk a circle on the pavement around it?
> 
> Not sure what you're complaining about. Shouldn't generated files be
> ignored? Or is the problem that they're not put in one single
> directory?
[...]

Word on the street is that the recommended way is to put all generated
files in a dedicated directory rather than mix them in with source
files. Doing so has other side benefits, like being able to parallel
build for multiple targets without stomping over each other (assuming
the generated files get placed in their respective architecture's
subdirectory), avoiding stray orphan generated files causing heisenbugs
(stale object file getting linked into the program overriding symbols
from the real object file -- I've actually run into this at work, and
it's very frustrating).

But for Phobos, meh... just stick it in .gitignore and call it a day. No
need to make such a big deal out of it. Tempest in a teacup.


T

-- 
Never ascribe to malice that which is adequately explained by incompetence. -- Napoleon Bonaparte


More information about the Digitalmars-d mailing list