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 have a PDK template where the moduleroot/ has a folder with scripts that are marked executable.
~/src/pdk-template$ ls -l moduleroot/ci_scripts
total 8
-rwxr-xr-x@ 1 nate nate 287 Mar 10 15:34 validate_things.sh
When I build a module based on this PDK template, the validate_things.sh script does not get created as executable. Also when updating a module based on this template, the script remains not executable.
What is expected
A file that's executable in a PDK template (either in moduleroot or moduleroot_init) should be created/updated by the PDK as executable in the module.
What actually happens
Executable files are created without the execute bit set, making them non-executable.
This also happens when pdk update'ing a module.
The text was updated successfully, but these errors were encountered:
~ $ pdk new module --template-url=https://github.com/natemccurdy/pdk-templates --template-ref=PDK-1803/reproduction
...(snip interview dialog)...
~ $ cd test
~/test $ ls -l validate_things.sh
.rw-r--r-- 218 nate 15 Mar 13:50 validate_things.sh
~/src/test $ bash validate_things.sh
validate_things.sh is NOT executable
+1 on fixing this as it makes development harder since templated scripts cannot just be executed locally and work arounds for CI/CD have to be put in place.
Issue moved from PDK-1803
The Problem
I have a PDK template where the moduleroot/ has a folder with scripts that are marked executable.
When I build a module based on this PDK template, the validate_things.sh script does not get created as executable. Also when updating a module based on this template, the script remains not executable.
What is expected
A file that's executable in a PDK template (either in moduleroot or moduleroot_init) should be created/updated by the PDK as executable in the module.
What actually happens
Executable files are created without the execute bit set, making them non-executable.
This also happens when pdk update'ing a module.
The text was updated successfully, but these errors were encountered: