Hacker News new | ask | show | jobs
by uberex 37 days ago
I know it is just an example but I'd generate one of those files from the other in that case.
1 comments

That’s the obvious correct solution, I and many others have tried to make it work for a very long time. The python tooling is or at least was F’d enough that pure generate one from the other is a steady stream of disasters.

What works well is to generate one from the other and check the generated one into source control, and then verify that the checked in generated copy stays up to date using a CI job. But that’s very similar to the “two sources of truth, verified sync” approach