platformsh / cli

The unified tool for managing your Platform.sh services from the command line.
https://docs.platform.sh/administration/cli.html
MIT License
16 stars 6 forks source link

Silent failure when unable to access the temporary directory #177

Open pjcdawkins opened 3 months ago

pjcdawkins commented 3 months ago

For example, if originally installed as root, and then run as non-root, the CLI may fail with no output, because it can't access its temporary files:

image

pjcdawkins commented 3 months ago

This is probably more general - the debug env var probably shouldn't be needed if the error is a fatal one

image

akalipetis commented 3 months ago

If the directory exists, but we don't have access to it, we could start iterating until we find an available suffix (-1, -2, etc).

This will probably resolve #47, as each user will get their directory.