You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aside, this is to make things like Travis and Docker easier to configure without a lot of custom code in each. Example of me continually guessing and messing this up is available here:
Yes, please. I need to run my docker app as non-root, while all packages are installed as root. Poetry is getting installed in /root/.poetry and then a non-root user can't use it.
My preferred option for workaround (in case someone drops by here, who cannot wait for #794 to be merged)
given you already have get-poetry.py somewhere... and given sed is OK (this one should work fine on most Linux and Macs)
export get_poetry="/path/to/get/poetry"
python <( sed 's/^POETRY_HOME.*=.*/POETRY_HOME = os.environ.get("POETRY_HOME") or os.path.join(HOME, ".poetry")/'"$poetry_installer")
Note you could of course do manual equivalent (editing by hand). or you could do a hack of temporarily overriding HOME. I am partial to the sed way above because it seems fairly compatible, and doesn't involve hidden knowledge of a manual (or one-time-then-committed) patch to the file.
Reacted by drunkwcodes, Ben Nutchanon Ninyawee and Miguel Sánchez de León Peque
Activity
dcramer commentedon Jan 4, 2019
Aside, this is to make things like Travis and Docker easier to configure without a lot of custom code in each. Example of me continually guessing and messing this up is available here:
getsentry/zeus#166
Hopefully by the time you've read this I have it all functional ;)
dmfigol commentedon Jan 11, 2019
Yes, please. I need to run my docker app as non-root, while all packages are installed as root. Poetry is getting installed in
/root/.poetryand then a non-root user can't use it.floer32 commentedon Apr 4, 2019
My preferred option for workaround (in case someone drops by here, who cannot wait for #794 to be merged)
given you already have
get-poetry.pysomewhere... and given sed is OK (this one should work fine on most Linux and Macs)Note you could of course do manual equivalent (editing by hand). or you could do a hack of temporarily overriding
HOME. I am partial to thesedway above because it seems fairly compatible, and doesn't involve hidden knowledge of a manual (or one-time-then-committed) patch to the file.kasteph commentedon Oct 10, 2019
#794 closes this issue.
github-actions commentedon Mar 3, 2024
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.