Closed AlexisBRENON closed 2 years ago
Setting HOME (right were you're setting POETRY_CACHE_DIR) is not an option?
Setting HOME is an option (the one used for the moment) but not a clean one; overriding HOME can have some weird effects on Jenkins...
Le mer. 15 juil. 2020 22:01, Señor Rolando notifications@github.com a écrit :
Setting HOME (right were you're setting POETRY_CACHE_DIR) is not an option?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/python-poetry/poetry/issues/2519#issuecomment-658978536, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOCWHXY3IABVJS4WXAAOC3R3YDK5ANCNFSM4NYMEM3A .
I had the same issue with Jenkins -- setting $HOME as a hack works for now but it'd be nice if poetry fell back to the current directory if $HOME isn't available.
Hi,
I have the same problem. When I run "poetry config list", I'm not sure the cache-dir is overidden.
poetry config --list
2022-06-03 09:30:03 cache-dir = "/home/il/jenkins/.cache/pypoetry" # /tmp/srv_jenkins/workspace/url_feature_check_confluence_url/pypoetry
Should be resolved with #5672.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
-vvv
option).Issue
I try to use poetry for CI build, hence setting the
POETRY_CACHE_DIR
environment variable. While virtual environment is created in the right directory, a lock file try to be created in~/.cache/...
. However in CI build environment, HOME is not set so I got an error: