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
5
votes
2 answers

You have already activated rack 1.6.0, but your Gemfile requires rack 1.6.4. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)

I'm working with Elastic Beanstalk and I'm getting this error in my logs- You have already activated rack 1.6.0, but your Gemfile requires rack 1.6.4. Prepending bundle exec to your command may solve this. (Gem::LoadError) I've seen all related…
4
votes
4 answers

Your bundle is locked to rake (12.0.0), but that version could not be found in any of the sources listed in your Gemfile.

I get the following error message when starting the rails server: Your bundle is locked to rake (12.0.0), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of…
danielbker
  • 392
  • 1
  • 3
  • 21
3
votes
0 answers

Dependabot say Kramdown needs security update - but I dont have a gemfile in which the vunerability is supposed to be

I got a dependabot alert (CVE-2020-14001 Vulnerable versions: < 2.3.0 Patched version: 2.3.0) from github for one of my github pages (https://github.com/akademie-oeffentliches-gesundheitswesen/krisenmanagment). This alert is supposed to be in the…
3
votes
2 answers

Having difficulties to add sqlite3 into gemfile

I am having difficulties to run rails server command because of the following error: Specified 'sqlite3' for database adapter, but the gem is not loaded. Add gem 'sqlite3' to your Gemfile (and ensure its version is at the minimum required by…
Anton S.
  • 969
  • 1
  • 11
  • 29
2
votes
1 answer

Image not found for patron gem when running rails

I'm getting the following error when trying to run some rails commands in my app. I upgraded ruby 2.6.6 to 2.7.3 (I use rbenv) and bundle from 2.0.2 to 2.1.4, by doing brew update && brew upgrade ruby-build rbenv install 2.7.3 gem install…
2
votes
1 answer

Should I update my Gemfile or my Gemfile.lock for an activesupport update?

I got a dependabot alert on one of my personal projects on Github, asking me to Upgrade activesupport to version 6.0.3.1 or later. It has suggested that I do something like gem "activesupport", ">= 6.0.3.1". My question is, do I directly update my…
2
votes
1 answer

Rails 5.2.3 to 6.0.0 upgrade dependency hell

I ran bundle update rails to update my app to 6.0, and got this very confusing output. Updating these gems in the gemfile does not have any impact. I can't make heads or tails of this error, and it feels like a catch 22. This is the output: Bundler…
calyxofheld
  • 1,538
  • 3
  • 24
  • 62
2
votes
1 answer

Git will not ignore Gemfile.lock

I have a Gemfile.lock that git simply will not ignore. It's in my gitignore file (see below) but it keeps showing under unstaged changes whenever I bundle install. Anyone else ever run into something like this? Thanks in advance. My Gitignore…
neanderslob
  • 2,633
  • 6
  • 40
  • 82
2
votes
1 answer

Rails Heroku deployment error - push rejected

So I am trying to deploy my application on Heroku but haven't been able to due to this error. Have spent like 3 hours trying out different things. Gemfile and Gemfile.lock are same and I've even tried deleting the lock file and using bundle to…
Rishabh
  • 103
  • 1
  • 7
2
votes
1 answer

GitHub Import: Could not locate Gemfile

I have imported a Rails Application from "GitHub", https://github.com/farra/goo.git While trying to do bundle install in that it shows "Could not locate Gemfile". That repository actually don't have the below listed files with it. Gemfile,…
Harry Suren
  • 676
  • 1
  • 12
  • 23
1
vote
3 answers

Build error while trying to publish my Github pages

I keep getting build and deployment errors while trying to publish my gh pages, it works locally, does anyone could help me? I'm using Jekyll al-folio for my webpage. and the error I'm getting while trying to publish my gh pages is: github-pages…
1
vote
1 answer

Github Dependabot recommending Gemfile.lock PLATFORMS change from ruby to x86_64-linux. Nokogiri 1.13.1 -> 1.13.9

# Gemfile.lock - nokogiri (1.13.1) - mini_portile2 (~> 2.7.0) + nokogiri (1.13.9-x86_64-linux) ... PLATFORMS - ruby + x86_64-linux Hello! Dependabot is recommending a gem bump Nokogiri 1.13.1 -> 1.13.9 with the above diff. However I cannot…
i0x539
  • 4,763
  • 2
  • 20
  • 28
1
vote
0 answers

How to add dependencies to Rails engine's dummy app?

I would like to add a few dependencies in my test/dummy app so that I can do integration test of my engine. I added a test/dummy/Gemfile and put the dependencies on it: gem 'devise' gem 'devise_invitable' after I run bundle install inside the…
nanakondor
  • 615
  • 11
  • 25
1
vote
1 answer

Can I rebuild a Gemfile from a Gemfile.lock file?

I would like to replicate an older app, but bundle install fails since Gemfile became outdated and does not catch compatible versions anymore. I guess I can try correct Gemfile by err and trial, yet can I somehow use Gemfile.lock automatically…
Serge
  • 3,387
  • 3
  • 16
  • 34
1
vote
1 answer

bundle install does not respect Gemfile.lock

I faced some issues with bundle install. When we run 'bundle install' , One of the dependency gem in Gemfile.lock is get auto upgraded. As per theory, "bundle install" will look the Gemfile.lock for version and won't resolve the version and will…
Bala
  • 37
  • 5