samson icon indicating copy to clipboard operation
samson copied to clipboard

Commited autogenerated files

Open povilasb opened this issue 9 years ago • 5 comments

vendor/ can be generated from Gemfile, but it was commited to git.

Isn't this redundant?

Especially, that vendor/ size is about 27 MB.

povilasb avatar Jan 15 '16 21:01 povilasb

Gemfile.lock can be generated, but if you delete it and regenerate it on 2 different days, you can wind up with different versions of gems. Newer versions of gems could potentially introduce bugs. So we run our automated tests against a checked-in Gemfile.lock, and if it passes, that means that Samson should work, as long as you use those exact gems.

It also means that if we (re)deploy a specific version of Samson, it's guaranteed to run with the exact same gem versions.

Agreed that we don't need to have the gems checked into vendor. In the past, we had some problems grabbing gems from rubygems.org at deploy time, so we started the practice of checking them into repos.

jonmoter avatar Jan 15 '16 22:01 jonmoter

Yes, I fixed myself regarding Gemfile.lock.

povilasb avatar Jan 16 '16 07:01 povilasb

Is there a specific version of something you need? Gemfile.lock's are generally committed for applications.

steved avatar Jan 19 '16 18:01 steved

No, I'm ok with the versions. The only my concern was, if committing vendor/ wasn't redundant.

povilasb avatar Jan 20 '16 07:01 povilasb

Yeah, it's just legacy from our internal practices that we can probably remove. Git LFS might be a good match, but I haven't had enough time to play with it.

steved avatar Jan 20 '16 17:01 steved