putting different tar binary in $PATH before system tar breaks cache restore
See original GitHub issueNo matter what I do, cache hits are not occurring on https://github.com/mixxxdj/vcpkg . For example: https://github.com/mixxxdj/vcpkg/actions/runs/544379263 Cache hits used to occur on this repo a week or two ago. I don’t know why this broke.
The workflow file is fine. I have verified by pushing the same commit to my fork then rerunning the job. A cache hit occurred as expected: https://github.com/Be-ing/vcpkg/runs/1848167161
Here is the cache step from the workflow file:
- name: Set up cache
uses: actions/cache@v2
with:
path: ${{ matrix.vcpkg_path }}/installed
key: vcpkg-installed-${{ matrix.vcpkg_triplet }}-${{ github.ref }}-${{ github.run_number }}
restore-keys: |
vcpkg-installed-${{ matrix.vcpkg_triplet }}-${{ github.ref }}
vcpkg-installed-${{ matrix.vcpkg_triplet }}
I cannot simply use a different repo because the production repo has access to secrets required for uploading the build artifact to a server. This is very frustrating because these builds take 4 hours!
Issue Analytics
- State:
- Created 3 years ago
- Comments:17 (5 by maintainers)
Top Results From Across the Web
Changing the PATH changes the tar command used ... - GitHub
This changed the tar implementation found when searching the PATH because it added C:/Program Files/Git/usr/bin . This broke caching since the ...
Read more >GNU tar 1.34
You can use tar to create a new archive in a specified directory. The files inside an archive are called members.
Read more >How to install Linux / UNIX *.tar.gz tarball files - nixCraft
Most Linux tarball contains source code for software. I recommend installing all binary packages with apt-get, rpm and yum commands instead of ...
Read more >Best practices for writing Dockerfiles - Docker Documentation
Best practices for writing Dockerfiles. This document covers recommended best practices and methods for building efficient images.
Read more >Creating tar fills system cache - Ask Ubuntu
My system (Intel Core i7 3.50GHz × 8, 32GB RAM, NVidia Gtx 590) was frozen after a simple tar. I mean, how much...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
👍 Yeah, this is something I want to fix…basically…we should save the
tar
version during the restore step so changes to the PATH don’t impact this action.This issue was closed because it has been inactive for 5 days since being marked as stale.