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

How to add dependency to gemfile.lock through gemspec?

Personnel in relation to add_runtime_dependency, add_dependency and add_development_dependency the "Gem Specification", I'm trying to understand them. How they work and how to differentiate them. When I used the add_development_dependency, I was…
rplaurindo
  • 1,277
  • 14
  • 23
1
vote
2 answers

Bundler could not find compatible versions for gem "sass"

I am using middleman 3.3.9 and gem 'sass-rails', '~> 4.0.3' gem 'bootstrap-sass', '~> 3.3.1' gem 'bootstrap-timepicker-rails' gem 'sass', '~> 3.2.19' When I run bundle install, I get this error: Bundler could not find compatible versions for gem…
Bogdan Popa
  • 1,099
  • 1
  • 16
  • 37
1
vote
0 answers

Heroku application error - Gemfile.lock?

I keep running into the application error on Heroku website after I write git push heroku master. Does this have something to do with this?: WARNINGS: Removing 'Gemfile.lock' because it was generated on windows. Bundler will do a full resolve so…
Bendik
  • 13
  • 4
1
vote
0 answers

Openshift can't find gems

I'm trying to deploy a trivial application to a gear containing the "Ruby 1.9" and "PostgreSQL 9.2" packages. The deployment appears to succeed. When I point my browser to the server, I get a Passenger "Ruby (Rack) application could not be started"…
1
vote
1 answer

Managing conflicting dependencies in Gemfile.lock

In my gemspec file: I have a gem dependency called zconfig that explicitly requires net-ssh version 2.6.8 I'm also using net-sftp, which in turn requires net-ssh version >= 2.6.5 When I bundle install, bundler is smart enough to recognize the…
user2490003
  • 10,706
  • 17
  • 79
  • 155
0
votes
0 answers

bundle cache pulling the latest commit from master branch for a private hosted gem when gemfile.lock points to a different commit

Why does the bundle cache pulling the latest commit from a privately hosted git based gem. The gemfile.lock is pointing to a different commit hash in it. Why is it not respecting the gemfile.lock ? GIT remote:…
CodeWeed
  • 971
  • 2
  • 21
  • 40
0
votes
1 answer

Maximum depth of dependencies tree in Gemfile.lock

I want to parse a Gemfile.lock file as a dependencies tree. I've noticed that the indents indicates the structure of the dependencies tree like in this example below: GEM remote: https://rubygems.org/ specs: websocket-eventmachine-base…
Tomer S
  • 900
  • 1
  • 10
  • 21
0
votes
2 answers

error while run npm run dev after adding extension for App Lock theme in shopify app MERN

━━━━━━ Error ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Command failed with exit code 1: bundle install Your lockfile was created by an old Bundler that left some things out. Because of the missing DEPENDENCIES, we can only install gems one at…
0
votes
1 answer

Do I need to upgrade Gemfile.lock manually?

In the React Native Upgrade Helper from v0.67.0 to v0.67.4, one of the files that it says changes is Gemfile.lock. Do I need to make these changes manually, or will running npm i etc do these automatically?
gkeenley
  • 6,088
  • 8
  • 54
  • 129
0
votes
0 answers

Why Rails bundle install updating gemefile.lock file

As per my understanding gemfile.lock will install only those version which are mentioned in gemefile.lock file.. Problem I am facing is few gems which are acting as dependency gems in my gemfile.lock file are also getting upgraded after running…
Sanjay Salunkhe
  • 2,665
  • 5
  • 28
  • 52
0
votes
1 answer

Scalingo deploy error: "Could not detect rake tasks" ( Rails 6.1 )

I have a freshly created rails app that I'm unable to deploy on Scalingo PaaS. Whenever I try to deploy, I get the following error: Could not detect rake tasks Here is an extract of the backtrace: Fetching source code -----> Installing bundler…
0
votes
1 answer

Your Gemfile.lock contains merge conflicts error

What happened: Initially I was trying to deploy this simple blog app to Heroku but ran into a merge conflict issue with my Gemfile.lock and now of course I can no longer run rails s too on my terminal. Error Message The exact error I'm having is…
Lea Tinoso
  • 1,663
  • 2
  • 6
  • 14
0
votes
2 answers

"Configuration file: none" on bundle exec jekyll serve

At first I could use (not bundle exec) jekyll serve without any problem. Then I started creating a yaml data file (still trying to make it work) and, don't know how, I "lost" the Gemfile and the Gemfile.lock. When trying to run jekyll serve (with…
Vito
  • 179
  • 1
  • 14
0
votes
0 answers

Heroku buliid fails on Bundler version regardless of which is installed

I can't seem to configure my rails app properly. I had a perfectly working rails app deployed on Heroku. I added the datadog buildpack and then started getting the following build error: remote: ! You must use Bundler 2 or greater with this…
T. Young
  • 153
  • 13
0
votes
3 answers

Running bundle or rspec adds line to Gemfile.lock

After running various commands (bundle and rspec for example) in a Ruby project, Gemfile.lock is updated and x86_64-darwin-17 is added to the PLATFORMS heading. Why is this happening? How can I prevent it? Running gem env gives this interesting…
RangerRanger
  • 2,455
  • 2
  • 16
  • 36