Skip to content

Windows: Consider whether it's important to write/handle config.yml and docker-compose.yml in crlf native windows textfile format #261

Closed

Description

@rfay

What happened (or feature request):

On Windows we're creating text files in Unix format (with just LF at end of lines). Windows text files have CRLF at end of line. Lots of things handle this fine but it definitely shows that we're not windows-native and may be a problem to some developers who use editors like notepad that aren't up to the task.

Here's what our config.yml looks like in notepad:

image

What you expected to happen:

Perhaps we want to write files in windows-native format, assuming that docker-compose can handle that.

How to reproduce it (as minimally and precisely as possible):

Anything else do we need to know:

Related source links or issues:

Activity

  1. beeradb commented on May 23, 2017

    @beeradb
    Contributor

    Adding to this: we also use \n quite often in CLI code. I assume it's probably handled OK by bash windows, but is there anywhere else that might be problematic?

  2. rfay commented on May 23, 2017

    @rfay
    MemberAuthor

    If I'm not mistaken, \n is actually a newline in the local environment, at least it has been since the days of 'C', so I think this is working OK in golang as well.

  3. added this to the milestone on Jun 2, 2017
  4. rickmanelius commented on Jun 2, 2017

    @rickmanelius
    Contributor

    Tagging w/v1.0 because that is when we are targeting improved Windows support. See Roadmap.

  5. rickmanelius commented on Sep 26, 2017

    @rickmanelius
    Contributor

    Proposed next actions:

    • Timeboxed audit (search) to find the number of usages of \n in our codebase.
    • Research if there is a Go library to normalize this.

    Not sure if this would be something that @nmccrory or @rfay would be more appropriate for. This also doesn't need to be queued this sprint.

  6. modified the milestones: v1.0.0, v1.2.0 on Oct 21, 2017
  7. modified the milestones: v1.2.0, v1.0.0 on Dec 11, 2017
  8. self-assigned this
    on Jan 16, 2018
  9. rfay commented on Jan 17, 2018

    @rfay
    MemberAuthor

    IMO we can hibernate this until somebody cares.

  10. rickmanelius commented on Jan 17, 2018

    @rickmanelius
    Contributor

    Works for me!

  11. removed this from the v1.0.0 milestone on Jan 17, 2018
  12. rfay commented on Apr 16, 2018

    @rfay
    MemberAuthor

    This has not blocked us at any point, nobody has ever complained. Closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions