Would have removed .. in heroku deploy log

后端 未结 5 916
无人及你
无人及你 2021-01-08 00:52

a few days ago I started to see

 Would have removed best_in_place (2.0.2)
 Would have removed thor (0.16.0)

in my heroku deploy output.

5条回答
  •  囚心锁ツ
    2021-01-08 01:22

    That's a bug in Heroku deployment configuration. It writes a file .bundle/config which has a line:

    BUNDLE_DRY_RUN: false
    

    When bundler loads this global config file, it translates this to :dry_run => "false" When it checks for this setting, it's checking settings[:dry_run], which is a string, which evaluates to true.

    You can remove this line by some shell commands (heroku run bash):

    mv -f .bundle/config .bundle/config.orig
    sed '/BUNDLE_DRY_RUN/d' < .bundle/config.orig > .bundle/config
    

    And then run

    bundle clean
    

提交回复
热议问题