Jake B.
Well-known member
Long story short, _metadata.json is causing a lot of extra time to be wasted when merging changes between multiple developers.
I've done some basic testing, and it seems like it'd be save to add _metadata.json (for dev/design mode) to our .gitignore. From my basic amount of testing it seems like these are automatically rebuilt if they don't exist, and are only used to check if a template/style property/whatever needs to be reloaded from the dev output, and if the file doesn't exist it appears to be reloading it regardless. We have an add-on we use internally that allows us to automatically run
I've done some basic testing, and it seems like it'd be save to add _metadata.json (for dev/design mode) to our .gitignore. From my basic amount of testing it seems like these are automatically rebuilt if they don't exist, and are only used to check if a template/style property/whatever needs to be reloaded from the dev output, and if the file doesn't exist it appears to be reloading it regardless. We have an add-on we use internally that allows us to automatically run
xf-addon:rebuild
(or xf-addon:upgrade
when necessary) and xf-designer:import
on every installed add-on and style at once, and it's just a part of our git flow that when you pull you should run this after merging to make sure your local environment is as updated as possible. Obviously with add-ons sometimes you'll need to run some upgrade/install step manually. So I'm just hoping we'd be able to save some headache while merging by removing these _metadata.json files since they just contain hashes and you sometimes have to go through hundreds of lines to manually merge them if git isn't able to handle it for one reason or another