sixty4bit sixty4bit - 1 year ago 73
Ruby Question

Chef: should I be checking "syntaxcache" files into version control?

I'm learning Chef and am keeping my

chef-repo
in version control. When I use
knife cookbook upload
and then run
git status
I see a bunch of new files in
.chef/syntaxcache
. They look like this:

.chef/syntaxcache/8ab66bdf1ceb07273f7b3d71f483fbd84be595e845e90ffcbeb0ba6d22f684b0


Should I be adding these to version control or just put a pattern in
.gitignore
to leave them out?

Answer Source

No, most stuff under .chef are temp files. Specifically those are (I think) rendered versions of Erb templates so we can run a Ruby syntax checker on them. I'm kind of surprised we don't delete them afterwards though, that's probably a bug.