Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File mode is not preserved #296

Closed
djgilcrease opened this issue Apr 19, 2018 · 2 comments
Closed

File mode is not preserved #296

djgilcrease opened this issue Apr 19, 2018 · 2 comments
Labels

Comments

@djgilcrease
Copy link
Contributor

when using something like gomplate --input-dir=templates --output-dir=deploy that contains files with the execute bit set that is not preserved.

I am thinking to update gatherTemplates to add get the current FileMode and pass it to addTarget and then into openOutFile

If this approach is ok I will create the pull request

@hairyhenderson
Copy link
Owner

Hi @djgilcrease - thanks for logging this!

That sounds like a reasonable plan overall. You'll need to alter walkDir as well to track and output the mode.

A PR would be greatly appreciated! Thank you!

@djgilcrease
Copy link
Contributor Author

djgilcrease commented Apr 20, 2018

#301

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants