tag:help.appveyor.com,2012-11-13:/discussions/problems/1527-chocolatey-folder-cache-issueAppVeyor: Discussion 2018-10-19T08:17:00Ztag:help.appveyor.com,2012-11-13:Comment/359918922015-02-08T08:55:55Z2015-02-08T08:55:55ZChocolatey folder cache issue<div><p>Hi,</p>
<p>I use the cache to avoid to download and install all chocolatey
packages for each build but I made a mistake and the cache for my
project is unstable, is it possible to reset it?<br>
Here the project url: <a href=
"https://ci.appveyor.com/project/laedit/vika">https://ci.appveyor.com/project/laedit/vika</a></p>
<p>Also, to avoid you another request like this, is it possible to
reset the cache from the settings tab?</p>
<p>Another question, I use the cache like this with chocolatey
package:<br>
- C:\ProgramData\chocolatey\lib</p>
<p>But I need to cache the shim generated by chocolatey in the bin
folder, like this:<br>
- C:\ProgramData\chocolatey\bin\OpenCover.Console.exe</p>
<p>And if I forgot one the build is broken, because the real tool
path is not in the PATH env variable.</p>
<p>Is there a better way to do it?</p>
<p>Thanks.</p></div>Jérémie Bertrandtag:help.appveyor.com,2012-11-13:Comment/359918922015-02-08T22:26:47Z2015-02-08T22:26:47ZChocolatey folder cache issue<div><p>Hi Jeremy,</p>
<p>We've just added "cache dependencies" feature (<a href=
"https://github.com/appveyor/ci/issues/83#issue-51387021">https://github.com/appveyor/ci/issues/83#issue-51387021</a>),
so you can use some file as a dependency for
<code>C:\ProgramData\chocolatey\lib</code> cache item, for
example:</p>
<pre>
<code>cache:
- C:\ProgramData\chocolatey\lib -> appveyor.yml</code>
</pre>
<p>This will mean <em>invalidate
<code>C:\ProgramData\chocolatey\lib</code> whenever
<code>appveyor.yml</code> is changed</em>. Dependency check is
performed on build start and cache item won't be restored if
dependency changed. At the end of successful build cache item will
be updated.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/359918922015-02-09T16:56:22Z2015-02-09T16:56:22ZChocolatey folder cache issue<div><p>Excellent, I will try it as soon as I can!<br>
You are the best!</p></div>Jérémie Bertrand