package.json & cache invalidation
I love the way appveyor can cache things like the node_modules folder in between builds of my app. But I've hit a snag and wonder if there is a good work around. I would like to invalidate the cache if the package.json file changes. But I need to update the version field in the package.json when I create a new version. So this means I'm invalidating the cache each time I bump the version, even if none of the dependencies change.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Feodor Fitsner on 27 May, 2016 05:39 PM
My first thought was it's impossible as it just takes file CRC without looking inside.
However, I've got an idea! There is a possibility to override clone script with your own custom script, something like:
after cloning the repo you can copy
package.jsonto something likepackage-no-ver.jsonand then using a simple script remove version information frompackage-no-ver.json. Then usepackage-no-ver.jsonas cache item dependency.Dirty hack, but might work :)
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:06 AM.