News for hackers. Stuff that matters.
Re:Show HN: Vdm, a sane alternative to e.g. Git submodules by quilombodigital on Monday July 29, 2024 @10:41PM (#41105647)
To me, the biggest indicator that all the links being posted here about Git submodule systems come from people who don't know what they're doing is the fact that all of them (vdm, pasta, peru, git-aggregator, etc.) are using YAML as a config. Anyone who has worked at least a few years with Git and YAML knows that this type of file is not Git/diff friendly. I've seen too many disastrous merges, and the developers in the company have to keep using unityyamlmerge to resolve a foolish decision by Unity. Moreover, if anyone here has tried to parse YAML, they understand how unnecessary it is to use this format 99% of the time. In your case, the only advice I can give is to use a complete repo config per line, so it doesn't spread across different lines. This ensures the atomicity and integrity of your information.
Re:Show HN: Vdm, a sane alternative to e.g. Git submodules by juped on Tuesday July 30, 2024 @05:16AM (#41107385)
I never thought of that before, but it's a good point.
Re:Show HN: Vdm, a sane alternative to e.g. Git submodules by esafak on Tuesday July 30, 2024 @05:00PM (#41114095)
What config format do you recommend?
Re:Show HN: Vdm, a sane alternative to e.g. Git submodules by quilombodigital on Tuesday July 30, 2024 @08:34PM (#41115455)
For this specific scenario, a simple custom format, one line per config, properties separated by commas and key from value by equals. In C# you can populate a dictionary with readallines/linq in one line of code. Need hierarchy/tree, use dots at the property name. Kiss