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
I can't seem to find a valid way to use this tool within a devcontainer (VS Code).
The main issue seems to be that the tool locks down the pyproject.toml and pdm.lock files to the executing user with rw-/---/--- permissions. If you mount the project directory inside a docker container and then run pdm add * from inside the container, this means that the files will be locked so that they can only be read by root on the host. This then causes any subsequent rebuild of the container to fail, as these files are copied empty by the docker daemon, which in turn causes the tool to fail in installation.
I contrast this to poetry, which respects the umask (doesn't force the permissions to rw-/---/---) on pyproject and doesn't suffer from this same issue.
The text was updated successfully, but these errors were encountered:
I can't seem to find a valid way to use this tool within a devcontainer (VS Code).
The main issue seems to be that the tool locks down the
pyproject.toml
andpdm.lock
files to the executing user withrw-/---/---
permissions. If you mount the project directory inside a docker container and then runpdm add *
from inside the container, this means that the files will be locked so that they can only be read byroot
on the host. This then causes any subsequent rebuild of the container to fail, as these files are copied empty by the docker daemon, which in turn causes the tool to fail in installation.I contrast this to
poetry
, which respects the umask (doesn't force the permissions torw-/---/---
) on pyproject and doesn't suffer from this same issue.The text was updated successfully, but these errors were encountered: