issues when pushing a template with restricted file permissions
i'm trying to use nix to package my coder templates, and i ran into an odd edge case when doing so
it seems that when directories without write privileges are added (e.g., when they're in the nix store), the provisioner preserves these when writing to its tempdir, and is then not able to continue extracting the archive
this is the error i see locally:
one can repro this without nix by:
- removing write privs on their template directory (
chmod -R ugo-w [some subdirectory])- tarballing the template dir
tar cvf ../my-template.tar *.tf [some subdirectory]- trying to push the template
cat ../my-template.tar | coder templates push -d - my-template --yesam i missing some flag to skip preserving permissions? also happy to file a gh issue if preferred
