Heroku: Error encountered while saving cache

后端 未结 3 2102
孤独总比滥情好
孤独总比滥情好 2020-12-03 11:42

Everything works fine locally, but when pushing to Heroku:

   Warning. Error encountered while saving cache /tmp/build_1b5c442a-d24e-4f80-9755-a0bd15d7f029/t         


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-03 12:27

    This is related to the recent upgrade of the sass gem to 3.3.0. The sass gem is a dependency of a couple of other sass gems, so even if you don't have it in your Gemfile, it is probably getting loaded. Do a "bundle show" locally and on Heroku and I'm fairly sure you'll see they are different versions (sass was upgraded to 3.3.0 just a couple days ago).

    Add:

    gem 'sass', '3.2.13'
    

    to your Gemfile and that should fix things for you. Then go submit an issue on github for this gem.

    Hope this helps, it worked for me!

提交回复
热议问题