draft-classic icon indicating copy to clipboard operation
draft-classic copied to clipboard

`draft create` does not respect file permissions in packs

Open omnilinguist opened this issue 7 years ago • 2 comments

After skimming through the existing packs, it looks like most or all of them don't have executables, which could explain this bug I found: if a file in a pack is marked as an executable, draft create -ping it drops the executable bit in the resulting file structure. To express this more generally, file permissions from draft packs should be preserved by draft create.

omnilinguist avatar Jun 07 '18 22:06 omnilinguist

That is a great thing to have found! Thank you.

squillace avatar Jun 08 '18 00:06 squillace

...and, in an ironic twist, the reverse was discovered happening inside charts/[service-name]/templates: _helpers.tpl, together with all *.yaml files, have gotten the executable bit added in the draft created file structure, where it was not present in the pack!

omnilinguist avatar Jun 08 '18 11:06 omnilinguist