Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey guys,
you suggest to commit the Gemfile.lock in the repository.
I had some trouble as some of our devs are on Mac, some on Ubuntu and some on Win.
So committing the vendor folder and stuff didn't seem to be a good Idea because of path problems.
I think the Gemfile.lock didn't make sense to commit as well for the same reason.
And in my understanding it should be enough to add the Gemfile to the repo and everyone locally runs bundle install.
Am I correct when assuming this? Anyone any experiences or suggestions one this?
Thx
bechtold
Comments
Comment #1
iamcarrico CreditAttribution: iamcarrico commentedGemfile.lock should be committed, as it contains the exact versions of each gem you are using.
You should NOT commit the vendor/bundle file, as it contains all the gems that you are using. If you are using the Gemfile.lock correctly, that will contain all the information you need.