You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: Consider whether it's important to write/handle config.yml and docker-compose.yml in crlf native windows textfile format #261
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:
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):
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?
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.
Activity
beeradb commentedon May 23, 2017
Adding to this: we also use
\nquite often in CLI code. I assume it's probably handled OK by bash windows, but is there anywhere else that might be problematic?rfay commentedon May 23, 2017
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.
rfay commentedon May 24, 2017
References for work on this:
https://github.com/andybalholm/crlf (library to allow writing in os-dependent manner)
https://godoc.org/golang.org/x/text/transform
https://groups.google.com/forum/#!topic/golang-nuts/VwpNO73V1CE
rickmanelius commentedon Jun 2, 2017
Tagging w/v1.0 because that is when we are targeting improved Windows support. See Roadmap.
CLI validation patch from Tanner from upstream bootstrap repo
rickmanelius commentedon Sep 26, 2017
Proposed next actions:
\nin our codebase.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.
rfay commentedon Jan 17, 2018
IMO we can hibernate this until somebody cares.
rickmanelius commentedon Jan 17, 2018
Works for me!
rfay commentedon Apr 16, 2018
This has not blocked us at any point, nobody has ever complained. Closing for now.