Chocolatey folder cache issue

Jérémie Bertrand's Avatar

Jérémie Bertrand

08 Feb, 2015 08:55 AM


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?
Here the project url:

Also, to avoid you another request like this, is it possible to reset the cache from the settings tab?

Another question, I use the cache like this with chocolatey package:
- C:\ProgramData\chocolatey\lib

But I need to cache the shim generated by chocolatey in the bin folder, like this:
- C:\ProgramData\chocolatey\bin\OpenCover.Console.exe

And if I forgot one the build is broken, because the real tool path is not in the PATH env variable.

Is there a better way to do it?


  1. Support Staff 1 Posted by Feodor Fitsner on 08 Feb, 2015 10:26 PM

    Feodor Fitsner's Avatar

    Hi Jeremy,

    We've just added "cache dependencies" feature (, so you can use some file as a dependency for C:\ProgramData\chocolatey\lib cache item, for example:

      - C:\ProgramData\chocolatey\lib -> appveyor.yml

    This will mean invalidate C:\ProgramData\chocolatey\lib whenever appveyor.yml is changed. 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.

  2. 2 Posted by Jérémie Bertran... on 09 Feb, 2015 04:56 PM

    Jérémie Bertrand's Avatar

    Excellent, I will try it as soon as I can!
    You are the best!

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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