简体   繁体   English

在Rails中,为什么在没有运行包或包安装的情况下有一个新的Gemfile.lock? (以及新的Gemfile时间戳)

[英]In Rails, why there is a new Gemfile.lock when no bundle or bundle install was run? (and a new Gemfile timestamp too)

It is very strange that all of a sudden, there is a new Gemfile.lock in my folder, even though I have not run bundle or bundle install or bundle update for a few days. 奇怪的是,即使我几天都没有运行bundlebundle installbundle update ,我的文件夹中还是突然有了一个新的Gemfile.lock

Also, I have merged in any changes and committed and pushed 1 hour ago, so this newly modified Gemfile.lock seems weird. 另外,我已经合并了所有更改,并在1小时前提交并推送,所以这个新修改的Gemfile.lock似乎很奇怪。

Also, the timestamp of Gemfile is just 1 minute before the timestamp (modification time) of Gemfile.lock , but I checked the Mercurial log and Gemfile was modified 3 days ago, and I pull any new changes 12 hours ago and there wasn't any change... 而且,时间戳Gemfile是时间戳(修改时间)前仅仅1分钟Gemfile.lock ,但我查了水银日志和Gemfile 2天前被修改,和我拉任何新的变化2小时前,有没有任何改变...

So why a new timestamp of Gemfile , and why is Gemfile.lock also modified? 那么,为什么要使用新的Gemfile时间戳,为什么还要修改Gemfile.lock

您可以尝试再次运行“捆绑安装”,并查看它是否会更改您的Gemfile.lock文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 了解Gemfile.lock:是否可以删除Gemfile.lock然后再次运行bundle install? - Understanding Gemfile.lock: Is it okay to delete Gemfile.lock then run bundle install again? 从Rails控制台系统命令发出时,“bundle install”不会创建Gemfile.lock - “bundle install” not creating Gemfile.lock when issued from a Rails console system command 如何在使用capistrano进行bundle安装期间指定Gemfile.lock的路径 - how to specify path to Gemfile.lock during bundle install with capistrano 当我的同事运行“捆绑安装”时,他会安装最新的宝石还是Gemfile.lock中的宝石? - When my coworker runs “bundle install”, will he install the newest gems or the ones in Gemfile.lock? 新的Rails项目:'bundle install'无法在gemfile中安装rails - New Rails Project: 'bundle install' can't install rails in gemfile Rails Gemfile.lock - Rails Gemfile.lock 任何捆绑命令都会清除Gemfile.lock文件内容 - Any bundle command clears out Gemfile.lock file content 有没有办法在运行捆绑包安装之前获取gem的版本(来自Gemfile.lock) - Is there a way to get a gem's version before running bundle install (from Gemfile.lock) “修改:Gemfile.lock”,为什么? - “modified: Gemfile.lock”, Why? 捆绑安装-未找到GEMFILE - Bundle install - GEMFILE NOT FOUND
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM