Rails, Installed Gem Version and Gemfile.lock Version

I have a problem.

Gemfile.lock is always executed if the package is updated.

And today, when I deploy the web application, I see this error message,

Could not find jwt-1.5.3 in any of the sources 

jwt-1.5.2 installed on the deployed server using the common gem path.

I think the package installs the new jwt-1.5.3 gem, because the specified version (1.5.3) in Gemfile.lock and the installed version (1.5.2) are not equal.

Why can't bind jwt gem installation?

Should the package install this pearl if jwt-1.5.3 could not be found?

+5
source share
2 answers

Delete the Gemfile.lock file. Then bundle install again. Hope it installs again using jwt-1.5.3 . But make sure you mention the jwt version in the gem file.

+8
source

Oh .. I know why.

https://rubygems.org/gems/jwt/versions/1.5.3

jwt 1.5.3 twitches for some reason. Therefore, version 1.5.3 is not in the repository ..!

+3
source

Source: https://habr.com/ru/post/1245758/


All Articles