【问题标题】:how to prevent bundler from adding platform info to Gemfile.lock如何防止捆绑器将平台信息添加到 Gemfile.lock
【发布时间】:2012-05-08 12:35:33
【问题描述】:

每次我运行bundle --without=production bundler 时都会将平台信息PLATFORMS x86-mingw32 添加到Gemfile.lock,并且在部署到 Heroku 时我必须手动删除该信息。如果我不删除它,Gemfile.lock 不会添加到存储库并导致错误。

如何防止捆绑器将平台信息添加到Gemfile.lock

【问题讨论】:

    标签: ruby-on-rails-3 heroku bundler platform


    【解决方案1】:

    我有一个非常相似的问题 - Can I stop Bundler from adding RUBY VERSION to Gemfile.lock - 结果答案是无法完成。 Bundler 添加此信息 within the to_lock method 并且没有条件跳过该部分。

    似乎可以重构 to_lock 以控制实际写入锁定文件的哪些部分,但到目前为止,这还不足以让我做出这样的努力。

    【讨论】:

      猜你喜欢
      • 2022-06-12
      • 1970-01-01
      • 2021-05-27
      • 1970-01-01
      • 2019-03-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多