Re:We Put Half a Million Files in One Git Repository, Here’s...
by haizzz on Thursday June 16, 2022 @02:37AM
(#31763082)
I made another comment as well though tldr is these xlf files are translations tied to texts in code so we can't simply ignore them from the repository. The changes have to be kept so that if we say revert to a certain commit, all the translations match with the texts of headers, buttons, etc...
[ Parent
| on HN ]
Re:We Put Half a Million Files in One Git Repository, Here’s...
by zoomablemind on Thursday June 16, 2022 @07:47AM
(#31764870)
>...The changes have to be kept so that if we say revert to a certain commit, all the translations match with the texts of headers, buttons, etc...
The mentioned .zip file is to be kept in the repo. Instead of a whatever number of individual .xlf files per generation, these would get zipped together (say, 'assets/xlf.zip') before the commit and the resulting .zip added to the commit.
Similarly, when reverting or on a checkout, it's the .zip that gets checked out and then the .xlf files are unpacked.
The packing/unpacking could be done by the same process that handles the .xlf generation (??build).
Also this may be automated by git-hooks, though it's more natural to handle the packing of assets during the build stage.
Re:We Put Half a Million Files in One Git Repository, Here’s...
by GeneralMaximus on Thursday June 16, 2022 @04:49AM
(#31763802)
Could these translations be moved to another repository? Maybe they could be published as a separate NPM package that devs could install if they needed to look at the translations?
Re:We Put Half a Million Files in One Git Repository, Here’s...
by klysm on Thursday June 16, 2022 @07:14AM
(#31764677)
Then you get the annoying problem of having to push an update to that repo and wait for the new version before you can merge changes into the new repo which use the new version. It’s tightly coupled, so they should be co-located.