Questions tagged [gemfile.lock]

The Gemfile.lock is the snapshot file keeping the installed gem names, and versions.

The Gemfile.lock is the snapshot file, where , after installing any needed gems to your system, bundler writes a snapshot of all of the gems and versions of the installed gems. The Gemfile.lock makes your application a single package of both your own code and the third-party code it ran the last time you know for sure that everything worked.

See also

82 questions
1
vote
1 answer

Parsing direct and indirect Gems of Gemfile.lock file

I'm trying to parse the following Gemfile.lock to include ALL Gems (direct and indirect dependencies) out of GEM specs: GEM remote: http://rubygems.org/ specs: coderay (1.1.3) domain_name (0.5.20190701) unf (>= 0.0.5, < 1.0.0) …
ivey221
  • 95
  • 7
1
vote
0 answers

How the gemfile will be maintained, as a common one for iOS and Android in react-native app

How the Gemfile will be maintained, as a common one for iOS and Android or not. I am using react-native app I have setup fastlane there it crated a Gemfile and it is inside the android folder. Then an another Gemfile will create in the root folder…
sejn
  • 2,040
  • 6
  • 28
  • 82
1
vote
1 answer

Gemfile.lock full of conflicts I can't resolve

I'm helping a friend with a project, but after helping him with the logic instead of merging my branch, for some reason he copied the code and added it himself. So my branch remained "behind". He kept working and now he asked me to help him with…
1
vote
0 answers

New version of gem not reflecting in gemfile.lock of an engine

I'm updating the rails version of my application from '4.2' to '6.0'. There are multiple engines in my application. The new rails version is not reflecting in the gemfile.lock of engine which is causing the following error on running bundle update…
Dynamo
  • 67
  • 11
1
vote
0 answers

aws beanstalk for sinatra app - Could not find 'bundler' (2.0.2) required by your /var/app/ondeck/Gemfile.lock

Summary: how to I get beanstalk to use bundler 2 when my attempts failed Trying to deploy a Sinatra app using Elastic Beanstalk I get (logs) ... + cat Gemfile source 'https://rubygems.org' gem 'sinatra' gem 'aws-sdk-s3' + '[' -d…
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
1
vote
0 answers

Best practice for ruby project and gemification

I'm pretty new at Ruby. I have a Ruby project placed at Github. I created independently a ruby gem which I update manually on each release. To create it I just created only a gemspec file and It worked fine and I published it as ruby gem. My project…
OscarAkaElvis
  • 5,384
  • 4
  • 27
  • 51
1
vote
1 answer

Bundler conflict - Heroku requires Bundler 2 but app requires Bundler v< 2

Bundler is causing a build fail for my Heroku app. It is a ruby on rails app and was working perfectly and deployed on Heroku. I started getting the following build error only after I installed the datadog agent. The build error seemed easy enough…
T. Young
  • 153
  • 13
1
vote
3 answers

How to install bundler with the version written in "BUNDLED WITH" in Gemfile.lock

I want to install bundler with a specific version written in Gemfile.lock. Do you know how to do it? I want to let ci like Jenkins automatically install bundler of the version. BUNDLED WITH 1.13.5
diveintohacking
  • 4,783
  • 6
  • 29
  • 43
1
vote
1 answer

Why does my iOS project Gemfile bundle update unconsistently?

I have a simple Gemfile for an iOS project using cocoapods: # frozen_string_literal: true source "https://rubygems.org" gem 'cocoapods' gem 'fastlane' gem 'jazzy' I've tried to update my bundle by a bundle update and jazzy went from version 0.8.2…
Mick F
  • 7,312
  • 6
  • 51
  • 98
1
vote
2 answers

Gemfile with exact versions vs Gemfile.lock

Is there any difference between specifying exact versions of third-party libraries in Gemfile and using Gemfile.lock? If I use exact versions in Gemfile will it be the same as distributing Gemfile.lock?
FrozenHeart
  • 19,844
  • 33
  • 126
  • 242
1
vote
1 answer

Your Gemfile.lock is corrupt. The following gems are missing from the DEPENDENCIES section:

I am installing one app and I was in this step that I should run bundle install and I get this error enter code here➜ mavatar git:(master) ✗ bundle install Fetching gem metadata from http://rubygems.org/ Fetching version metadata from…
1
vote
1 answer

Why don't we commit our gemfile.lock for gems?

The Gem Development guide says that the Gemfile.lock file "should always be checked into version control." However, this is NOT true for Gems. For Applications, like your Rails apps, Sinatra apps, etc., it is true. The same does not go for Gems. For…
Jwan622
  • 11,015
  • 21
  • 88
  • 181
1
vote
1 answer

Heroku H10 error "App Crashed"

I'm trying to deploy my Ruby on Rails webbapp to Heroku. Locally it works just fine but when I try to run it through Heroku is gives me a H10 error HTTP status 503. I guess it's because of the bash: bundle: command not found. But even running heroku…
Kupi
  • 903
  • 1
  • 10
  • 16
1
vote
1 answer

Corrupt Gemfile.lock Error with Capistrano

I'm trying to deploy my app using Capistrano, but I'm getting this error: Your Gemfile.lock is corrupt. The following gem is missing from the DEPENDENCIES section: 'nokogiri' I saw this question, unfortunately, the solution (switching Bundler…
yellowreign
  • 3,528
  • 8
  • 43
  • 80
1
vote
2 answers

unrequired files in github pages through jekyll

I'm fairly new to ruby and jekyll and I wanna start using jekyll to meu personal webpage. Among the files in my repo there is a'Gemfile' and 'Gemfile.lock' files. The Gemfile is used to manage dependencis and Gemfile.lock is generated…
pedrorijo91
  • 7,635
  • 9
  • 44
  • 82