.pioenvs (and sub-folders) created with 500 permission

When I try to build from the command-line using pio directly, the process gets interrupted because .pioenvs is created with dr-x------- (500) permissions which is read-only. If I chmod -r 755 .pioenvs it will then then apply the same read-only permissions on the first sub-folder created. After each error I do the chmod command and it finally succeeds in the build.

Is there some known reason or setting that causes this folder and its children to be created read-only?

Please upgrade PlatformIO Core to 4.0 or above via pio upgrade.

1 Like