-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache doesn't work when the project is not in the root of the repository. #476
Comments
Hi, @atayardimci 👋 Thank you for the feature request, we will take a look at it and get back to you with updates. |
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 : ) |
Hello @atayardimci. Sorry for the late response. Could you please try to specify |
Hi @dmitry-shibanov. I had already tried that, but it didn't work as expected. |
Hello @atayardimci. Could you please provide a public repository to reproduce the issue ? |
@dmitry-shibanov you can find an example with a poetry.lock in mdn/yari#7236 |
I have a totally same issue because using monorepo. My root is not the root of the project. |
Same issue! |
Hello everyone! |
I am closing the issue, since the new release should fix it. |
@MaksimZhukov seems like still not fixed because we can't specify Base on this PR #447 |
Any progress? |
* setup ssr sub-package https://coveord.atlassian.net/browse/KIT-2600 * wip: add define search engine and related types https://coveord.atlassian.net/browse/KIT-2600 * copy more type defs from benjamin's branch https://coveord.atlassian.net/browse/KIT-2600 * specify node version to fix eslint errors reg unsupported node features node version as per headless doc https://docs.coveo.com/en/headless/latest/usage/ https://coveord.atlassian.net/browse/KIT-2600 * complete copying over all required types https://coveord.atlassian.net/browse/KIT-2600 * rename couple of types to match underlying names https://coveord.atlassian.net/browse/KIT-2600 * reorder types based on usage https://coveord.atlassian.net/browse/KIT-2600 * add headless ssr import path to atomic dev build https://coveord.atlassian.net/browse/KIT-2600 * add nextjs app for headless ssr example https://coveord.atlassian.net/browse/KIT-2600 * trim generated files to simplify https://coveord.atlassian.net/browse/KIT-2600 * add headless as dep https://coveord.atlassian.net/browse/KIT-2600 * export define search engine from headless ssr https://coveord.atlassian.net/browse/KIT-2600 * remove async from hydrate as it can't be used with CSR https://coveord.atlassian.net/browse/KIT-2600 * add sample page using headless ssr utils https://coveord.atlassian.net/browse/KIT-2600 * simplify result list render, move engine to common dir https://coveord.atlassian.net/browse/KIT-2600 * fix no-async-promise-executor eslint error https://coveord.atlassian.net/browse/KIT-2600 * update todos https://coveord.atlassian.net/browse/KIT-2600 * Revert "remove async from hydrate as it can't be used with CSR" This reverts commit 256aaab. https://coveord.atlassian.net/browse/KIT-2600 * render sample with async hydrate https://coveord.atlassian.net/browse/KIT-2600 * add unit tests https://coveord.atlassian.net/browse/KIT-2600 * Fix headless isExpiredTokenError (KIT-2620) https://coveord.atlassian.net/browse/KIT-2600 * add test for results https://coveord.atlassian.net/browse/KIT-2600 * update comments * update name, desc of sample pkg * add a project json to headless ssr pkg * update headless * remove pkg lock * regen root pkg lock https://coveord.atlassian.net/browse/KIT-2600 * Revert "add headless ssr import path to atomic dev build" This reverts commit 19c4196. * pkg json update after build https://coveord.atlassian.net/browse/KIT-2600 * reorg files under /src/ * add root to eslint config https://coveord.atlassian.net/browse/KIT-2600 * fix dep list for effect https://coveord.atlassian.net/browse/KIT-2600 * use suspense when loading https://coveord.atlassian.net/browse/KIT-2600 * use any action type from redux https://coveord.atlassian.net/browse/KIT-2600 * add eslint config to ignore unused vars/args starting with underscore https://coveord.atlassian.net/browse/KIT-2600 * mark exports as @internal https://coveord.atlassian.net/browse/KIT-2600 * split types into smaller files https://coveord.atlassian.net/browse/KIT-2600 * split types part 2 https://coveord.atlassian.net/browse/KIT-2600 * change internal tag to beta https://coveord.atlassian.net/browse/KIT-2600 * move map obj to utils file https://coveord.atlassian.net/browse/KIT-2600 * move type files under a types/ dir https://coveord.atlassian.net/browse/KIT-2600 * split types part 3 https://coveord.atlassian.net/browse/KIT-2600 * add loading page for automatic suspense https://nextjs.org/docs/app/building-your-application/routing/loading-ui-and-streaming https://coveord.atlassian.net/browse/KIT-2600 * remove loading cmp https://coveord.atlassian.net/browse/KIT-2600 * render results directly https://coveord.atlassian.net/browse/KIT-2600 * rename initial state in controller snapshot to remove redundancy/confusion https://coveord.atlassian.net/browse/KIT-2600 * add custom controller to fetch results from snapshot https://coveord.atlassian.net/browse/KIT-2600 * mark SSR exported members as @internal https://coveord.atlassian.net/browse/KIT-2600 * move map object into headless utils https://coveord.atlassian.net/browse/KIT-2600 * move search engine types to its own file https://coveord.atlassian.net/browse/KIT-2600 * rename to remove redundant suffix from type files https://coveord.atlassian.net/browse/KIT-2600 * add new line https://coveord.atlassian.net/browse/KIT-2600 * update pkg lock * rename snapshot to initial state https://coveord.atlassian.net/browse/KIT-2600 * fix eslint no async promise executor https://coveord.atlassian.net/browse/KIT-2600 * add cypress https://coveord.atlassian.net/browse/KIT-2643 * add csr smoke test https://coveord.atlassian.net/browse/KIT-2643 * add web vitals check https://coveord.atlassian.net/browse/KIT-2643 * add gh action for e2e https://coveord.atlassian.net/browse/KIT-2643 * add base url config https://coveord.atlassian.net/browse/KIT-2643 * add specific vitals thresholds based on current stats https://coveord.atlassian.net/browse/KIT-2643 * add timestamp to rendered results https://coveord.atlassian.net/browse/KIT-2643 * add ssr smoke test https://coveord.atlassian.net/browse/KIT-2643 * add test https://coveord.atlassian.net/browse/KIT-2643 * add note https://coveord.atlassian.net/browse/KIT-2643 * add span for hydrated msg https://coveord.atlassian.net/browse/KIT-2643 * modify web vitals thresholds to accommodate CI env https://coveord.atlassian.net/browse/KIT-2643 * remove unused autogenerated file https://coveord.atlassian.net/browse/KIT-2643 * remove autogenerated unused e2e file https://coveord.atlassian.net/browse/KIT-2643 * add cypress config to disable support file https://coveord.atlassian.net/browse/KIT-2643 * update cypress to v12 and update other deps as well https://coveord.atlassian.net/browse/KIT-2643 * update test to work with cy12, turn off video https://coveord.atlassian.net/browse/KIT-2643 * ci: add next cache, enable cy install https://coveord.atlassian.net/browse/KIT-2643 * revert next to previous patch version to workaround err UND_ERR_REQ_CONTENT_LENGTH_MISMATCH https://coveord.atlassian.net/browse/KIT-2643 * ci: remove next cache actions/setup-python#476 https://coveord.atlassian.net/browse/KIT-2643 * use project instead of working dir to fix Error: Action failed. Missing package manager lockfile. https://coveord.atlassian.net/browse/KIT-2643 * revert to using working dir with install false https://coveord.atlassian.net/browse/KIT-2643
Description:
Add an input to the action (
working-directory
orproject-directory
) to specify the path to the project, where thepyproject.toml
file is located. Use this directory to look for thepyproject.toml
and cached deps.Justification:
Caching doesn't work for projects where the project is not in the root of the repository.
The text was updated successfully, but these errors were encountered: