Skip to content

coder templates pull doesn't truncate files when overwriting existing files but new contents are shorter #16414

Closed
@jingyuanliang

Description

@jingyuanliang

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

No response

Relevant Log Output

Expected Behavior

No response

Steps to Reproduce

  1. Create a template containing a file "test.tf" with "# ab"
  2. coder templates pull it into a directory
  3. Update the template to have the file say "# c"
  4. coder templates pull it into the same directory and confirm overwriting
  5. Local file now contains "# cb", want "# c"

Environment

  • Host OS: Ubuntu 24.04
  • Coder version: v2.18.4, CLI version: v2.18.0

Additional Context

No response

Metadata

Metadata

Assignees

Labels

s2Broken use cases or features (with a workaround). Only humans may set this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions