How to use cache to limit chocolatey source downloads

shadowbq's Avatar

shadowbq

24 Mar, 2015 02:58 PM

"One thing that you could do would be to cache the download that Chocolatey does, so that you don't have that time added to the overall build." - Can you cache the downloaded installers, and then simply do the install from there?

I am having issues with chocolatey downloading some sources that are failing randomly on builds.

The downloads end up in

C:\Users\appveyor\AppData\Local\Temp\chocolatey\*

the instruction appveyor is not instuction for cache is not covering my requirement here.

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

This Is NOT caching my dependent cinst.

  - cinst winpcap

(This requires http://ahkscript.org/download/1.1/AutoHotkey112003_x64.zip' which is failing randomly)

Please help..

  1. 1 Posted by shadowbq on 24 Mar, 2015 04:11 PM

    shadowbq's Avatar

    Adding choco appdata temp to the cache call seems to work..

    cache:
      - C:\Users\appveyor\AppData\Local\Temp\chocolatey

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:55 AM.

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