I wanted to use for windows certain folder c:\dev1, which expands to be as /c/dev1 when
using it from git bash. creating such directory is possible on windows machine, also on linux it’s possible as well, with specific set of commands:
sudo mkdir -p /c/dev1 sudo chown -R $USER:$USER /c/dev1 cd /c/dev1
(Steps can be executed anywhere,for example during script or before_cache build phase)
That is working ok, until you try to save and restore cache in same folder. Saving cache works ok, but unfortunately restoring cache does not work.
As a result I’ve ended up listing all supported cache folders, like this:
cache: directories: # Windows - /c/dev1/project/out # Linux - /home/travis/build/project/out
But of course this produces some warning in case if folder does not exists - when cache is saved.
Is it possible to specify folder per os name or be able to restore cache to different (non existing) folder ?