- Notifications
You must be signed in to change notification settings - Fork928
Closed
Description
Trying to upload a new version of a Coder workspace template usingcoder templates push -d /path/to/template/folder/ template-name
(using versionv0.8.4
of the Coder CLI tool) fails with the error:
Archive too big. Must be <= 1048576 bytes
The.tf
files in our workspace template folder aren't very large, though:
# `.` here is our workspace template directory❯ find. f -name'*.tf' -exec du -ch {} +| grep total$ 88K total
I think the issue may be that the.terraform
folders that are generated when we runterraform init
(towards being able to runterraform validate
) are being considered by the Coder CLI tool when constructing the template archive:
# `.` here is our workspace template directory❯ du -h....347M .terraform302M a_local_module/.terraform
I saw that hidden files are skipped by the Coder CLI tool when it creates the template archive - could hidden folders (or at least.terraform
) be skipped as well?
coder/provisionersdk/archive.go
Lines 43 to 46 in184f062
ifstrings.HasPrefix(rel,".") { | |
// Don't archive hidden files! | |
returnerr | |
} |
Metadata
Metadata
Assignees
Labels
No labels