Skip to content

Pushing templates with CRLF line endings commonly confuse users #5917

Closed as not planned
@ericpaulsen

Description

@ericpaulsen

template files created on a Windows client will follow the CLRF line ending convention. this becomes problematic when the agent start-up script is executed on a Linux-based workspace (which expects the LF line ending convention), resulting in the following errors:

/bin/bash: line 1: $'\r': command not found
zsh:2: command not found: ^M

@mafredri suggested we could auto-process terraform files from CRLF to LF upon import. from the terraform docs:

Terraform accepts configuration files with either Unix-style line endings (LF only) or Windows-style line endings (CR then LF), but the idiomatic style is to use the Unix convention, and so automatic configuration formatting tools may automatically transform CRLF endings to LF.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions