Would have removed .. in heroku deploy log

后端 未结 5 893
无人及你
无人及你 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:19

    @Roman explication is correct.

    If you have a custom buildpack (or you can easily fork it ans use it) it can be fixed in one line

    https://github.com/heroku/heroku-buildpack-ruby/blob/master/lib/language_pack/ruby.rb

    line 408-409 from

    puts "Cleaning up the bundler cache."
    pipe "bundle clean"
    

    to

    puts "Cleaning up the bundler cache."
    pipe "bundle config --delete dry_run"
    pipe "bundle clean"
    

    bundle config --delete remove the config (note the underscore) and, by default dry-run is false.

提交回复
热议问题