0

I am working on a project that is using Thrift and as a result has auto generated code.

Firstly, what are the pros and cons of placing this generated code in SCM vs not and insisting developers generate themselves if the wish the build the dependent software package.

I feel like auto generated code shouldn't be placed in SCM but then again there are shackles attached to having to generate the code via Thrift.

1 Answer 1

2

Putting auto-generated code into version control is just asking for things to get out of sync or (even worse) for people to try modifying the generated code. Both of these are likely to cause you significant problems down the line. I don't know much about Thrift but requiring developers to have the appropriate tools installed on their machines is a pretty minimal requirement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.