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.

Cache doesn't work when the project is not in the root of the repository.

See original GitHub issue

Description: Add an input to the action (working-directory or project-directory) to specify the path to the project, where the pyproject.toml file is located. Use this directory to look for the pyproject.toml and cached deps.

Justification: Caching doesn’t work for projects where the project is not in the root of the repository.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:19
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
IvanZosimovcommented, Aug 8, 2022

Hi, @atayardimci 👋 Thank you for the feature request, we will take a look at it and get back to you with updates.

3reactions
0xF4D3C0D3commented, Aug 22, 2022

I’ve been workarounding it as follows for now

-      - uses: actions/setup-python@v4
-        with:
-          python-version: 3.9
-          cache: poetry
-          cache-dependency-path: foo/poetry.lock
-      - run: poetry install

+      - uses: actions/cache@v3
+        with:
+          path: /home/runner/.cache/pypoetry/virtualenvs
+          key: hashFiles('foo/poetry.lock')

I hope this feature request be integrated into setup-python : )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot create cache directory .. or directory is not writable ...
composer folder was created by the root. Run this to fix the issue: $ sudo chown -R $USER $HOME/.composer.
Read more >
Failed to synchronize cache for repos for RHEL 8
When I run dnf repolist on rhel 8 enabled machine I see the following error "Failed to synchronize cache for repo" as seen...
Read more >
Caching in GitLab CI/CD
A cache is one or more files a job downloads and saves. Subsequent jobs that use the same cache don't have to download...
Read more >
TortoiseSVN's Settings
Items deleted from the repository, missing from the working copy, ... Disadvantage: Since only one folder is cached, the overlays don't show the...
Read more >
Invalidate caches | IntelliJ IDEA Documentation - JetBrains
The caches will not be deleted until you restart IntelliJ IDEA. · Opening and closing a project without invalidating the cache does not...
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