gitlab ci cache and python virtualenv issues warnings for symlinked files on re-use "WARNING: ...: chmod ...: no such file or directory"
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=14613) </details> <!--IssueSummary end--> when caching a python virtualenv you're greeted with a disturbing warning block like this https://gitlab.com/joernhees/test_ci_symlinks/builds/2320720 ![Screen_Shot_2016-07-13_at_10.54.10](/uploads/9f3c1a2bd506145e4515eb22b8c0e0ab/Screen_Shot_2016-07-13_at_10.54.10.png) I think that in its current form these are issued for symlinked files `ln -s ... ...` in the cached folder. I made a public test repo https://gitlab.com/joernhees/test_ci_symlinks , which just contains this `.gitlab-ci.yml`: ``` test: stage: test image: python:2 tags: - docker cache: paths: - venv/ script: - virtualenv -q venv - source venv/bin/activate - pip install -Uq flask - ls -FlahR ``` I then ran the tests here: https://gitlab.com/joernhees/test_ci_symlinks/pipelines/3688415 . You can see that the [first run](https://gitlab.com/joernhees/test_ci_symlinks/builds/2303814) is quite ok and fills the cache. I then re-ran the build to make use of the cache, causing the said warnings in the [second run](https://gitlab.com/joernhees/test_ci_symlinks/builds/2320720). As you can see from the output of the `ls -FlahR` the warnings seem to be generated from symlinked files. Is the problem maybe related to zipping the cache folder? Is there a way to use tar.gz instead? ~CI
issue