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.

Support cache-dependency-paths outside the current directory

See original GitHub issue

Description:

I’m building a composite Action which uses actions/setup-python internally. When specifying the requirements.txt from the action setting up Python fails, though I thiiink I’m passing the right values.

Here’s what I’ve got:

    - name: Set up Python
      uses: actions/setup-python@v3
      with:
        python-version: '3.10'
        cache: pip
        cache-dependency-path: ${{ github.action_path }}/requirements.txt

Here’s the error I get:

No file in /home/runner/work/sr2022-comp/sr2022-comp matched to [/home/runner/work/_actions/PeterJCLaw/srcomp-validate-action/bd809ff12b77607cc2f0ebbd035d6f0a5c8d32fc/requirements.txt], make sure you have checked out the target repository

sr2022-comp is the repo I’m using to test the action, srcomp-validate-action is the action.

My specific use-case only has a couple of dependencies so #351 would likely work as a fix, though I can imagine that a more complex scenario would want this to work.

Platform: Ubuntu

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
PeterJCLawcommented, Mar 28, 2022

Thanks for your replies. For completeness the repos in question are:

I’ve raised https://github.com/actions/toolkit/issues/1035 for the underlying issue.

0reactions
dmitry-shibanovcommented, Apr 1, 2022

Hello @PeterJCLaw. For now I’m going to close the pull request because the root cause of the issue comes from the toolkit repository. If you have any concerns feel free to ping us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Github actions: Dependencies lock file is not found in runners ...
Try out this solution. It worked in my case. In the build insert the default working directory
Read more >
CI: Caching outside repository seems impossible - GitLab
I constantly get WARNING: /root/.composer/cache/: no matching files . Though there is a workaround to redefine majority of paths and store them ...
Read more >
Caches | Bitbucket Cloud - Atlassian Support
Bitbucket Pipelines is able to cache external build dependencies and directories between builds, to reduce consumed build minutes.
Read more >
CommonJS modules | Node.js v19.3.0 Documentation
NODE_PATH was originally created to support loading modules from varying paths before the current module resolution algorithm was defined. NODE_PATH is still ...
Read more >
Caching Dependencies and Directories - Travis CI Docs
Travis CI can cache content that does not often change, to speed up your build process. To use the caching feature, in your...
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