Appveyor yarn caching assumes Windows image
I'm not sure where I should file this issue, but AppVeyor now supports Linux VMs (and supposedly plans to support macOS soon), yet this page (https://yarnpkg.com/lang/en/docs/install-ci/) shows only the %LOCALAPPDATA% approach, which will only work on Windows VMs. Looks like yarn cache dir shows the corresponding dir on their Linux VMs to be: /home/appveyor/.cache/yarn/v1 so the following snippet could be added to appveyor.yml:
for:
-
matrix:
except:
- image: Ubuntu
cache:
- "%LOCALAPPDATA%\\Yarn"
-
matrix:
only:
- image: Ubuntu
cache:
- "~/.cache/yarn"
Do you want to do a PR correcting that?
I can, if needed, but I was hoping someone else would review this and do the PR. It might be worth adding a couple comments showing a simple "Windows only" case and then this "hybrid" case.
@Daniel15, did you use appVeyor on Linux already?
Seems correct then, will accept a pr