简体   繁体   中英

gem update to new version but gemlock is showing version lower to the updated one

I have updated the gem to version 4.0 but after running bundle update the Gemlock file is showing the verision as 3.9, It should ideally change the vesrion to 4.0 in gemlock as well right. And is it right way to change the version in gemlock with correspond to gemfile version. Please advise

Perhaps bundler couldn't update the version because of other dependencies. All others dependencies must compatible with 4.0 version, if not then bundler will not update the gem to higher version.

Docs: https://bundler.io/v2.1/guides/using_bundler_in_applications.html#updating-gems---bundle-outdated-and-bundle-update

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM