sixty4bit sixty4bit - 9 months ago 46
Ruby Question

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

I'm learning Chef and am keeping my

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


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


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.