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

Writing an output file from a template provided via --in sets no FileMode when run using Docker #304

Closed
benjdewan opened this issue Apr 23, 2018 · 1 comment · Fixed by #305

Comments

@benjdewan
Copy link

Here is a simplified reproduction of the code I am running:

$ docker run --volume=$PWD:/out:rw hairyhenderson/gomplate --out=/out/file.txt --in="Hello world"
$ ls -l $PWD/file.txt
----------+ 1 benjdewan  staff  11 Apr 23 12:34 ./file.txt

I believe that the issue is related to Issue #296 and PR #301 since before those changes the output file would have been created with a a FileMode/umask of 0644, but now since there is no input file to get a the FileMode from we fall back on the OS default, and the scratch Docker image gomplate uses has no default.

@hairyhenderson
Copy link
Owner

Thanks for logging this, @benjdewan! Good catch, and sorry for the inconvenience 🙂

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

Successfully merging a pull request may close this issue.

2 participants