Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Project config switching between true/false and '1'/'0' on rebuild #4094
When building fields in the CP, statements in project config yaml look like this:
When running a rebuild later (which should just leave the yaml alone), it always replaces original values with these:
This can even be seen on an empty install when using the project config as a quick start - the values switch on initial install the same way.
I'm running the config sync locally on a Windows dev environment (WinNmp - nginx, php 7.3, mysql 5.7).
This doesn't affect functionality afaik, but it makes the Git commits hard to review for actual project config changes.
Steps to reproduce
Thanks @jamesmacwhite , that helps. I guess I'll make sure to run a project config rebuild before every commit then as that seems to normalize everything to MySQL string values - so I can keep the useful Git commit comparisons.
For anyone else reading this - if you're developing and don't care for keeping soft deleted items, it's better to run garbage collection before rebuilding the config (or deleted sections will find themselves back in the
So I'll run this before each commit:
./craft gc/run ./craft project-config/rebuild