question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

putting different tar binary in $PATH before system tar breaks cache restore

See original GitHub issue

No 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:closed
  • Created 3 years ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dhadkacommented, Feb 7, 2021

👍 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.

0reactions
github-actions[bot]commented, Jun 15, 2022

This issue was closed because it has been inactive for 5 days since being marked as stale.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found