-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore Gemfile.lock #221
Ignore Gemfile.lock #221
Conversation
Gemfile.lock is generated by bundler when installing dependencies for this project. Error from #220 happened because Gemfile.lock was in the repository and every time the dependencies updated and saved to the *lock file, the old version from repository overwrote it. And then failed to build the website. By ignoring Gemfile.lock we'll be able to generate it on a per-machine need and it won't be overwritten by building scripts (since it's being removed from the repository as well).
@pbanaszkiewicz Sorry, the set of changes looked benign. Didn't know it would cause these. |
@jduckles neither did I… |
live and learn! |
Actually Gemfile.lock should be included in the repository since its presence guarantees that two developers work with the same gem versions, thus guaranteeing reproducibility. See http://stackoverflow.com/questions/4151495/should-gemfile-lock-be-included-in-gitignore |
@andreabedini will pinning gem versions in Coming from Python world, |
possibly but you would need to make sure all dependencies (and their own
The idea is that That said, including Andrea Bedini @andreabedini[3], http://www.andreabedini.com use Links:
|
FYI I found this to be an interesting read http://www.kennethreitz.org/essays/a-better-pip-workflow |
Gemfile.lock is generated by bundler when installing dependencies for
this project.
Error from #220 happened because Gemfile.lock was in the repository
and every time the dependencies updated and saved to the *lock file,
the old version from repository overwrote it. And then failed to
build the website.
By ignoring Gemfile.lock we'll be able to generate it on a per-machine
need and it won't be overwritten by building scripts (since it's being
removed from the repository as well).