我使用以下buildpack:heroku-buildpack-nodejs
默认情况下,它应该缓存并还原android.support.v7.widget.CardView
。
node_modules
文件与yarn.lock
一起位于应用程序的根目录。
我还将package.json
添加到了"cacheDirectories": [".cache/yarn"]
在审阅应用程序构建日志分析期间,我看到:
package.json
...
-----> Restoring cache
Loading 1 from cacheDirectories (package.json):
- .cache/yarn (not cached - skipping)
...
-----> Installing dependencies
Installing node modules (yarn.lock)
此问题似乎于2016年12月20日开放: https://github.com/heroku/heroku-buildpack-nodejs/issues/359
如何在不对每个构建都安装依赖项的情况下实现缓存机制?