snok / install-poetry

Github action for installing and configuring Poetry
MIT License
572 stars 53 forks source link

Improve cache Poetry install instructions #154

Closed sebastian-correa closed 1 month ago

sebastian-correa commented 1 month ago

In #150, I described a usecase were caching the Poetry installation was causing the dependency cache step to break when the .lock was updated.

In summary, if some action used a cached poetry install (skips running snok/install-poetry), the configurations set in with would not be done, which caused any new dependency installs to not be cached, as Poetry by default installs venvs not in the .venv path (so the cache step can't find the .venv directory to cache).

This PR adds a section in the docs to clarify this and guide users to a fix.

sondrelg commented 1 month ago

Thanks for the help here @sebastian-correa! 🙇