I would say it doesn't really matter what option is set on build server
You can pass the build on build server, but fail on the build for
end-user with different option turned on
I usually recommend to create per-repo .gitattributes file to avoid
different behavior

On Thu, 18 Jul 2019 at 13:28, Vladimir Sitnikov
<sitnikov.vladi...@gmail.com> wrote:
>
> Hi,
>
> Recently core.autocrlf setting set to input (was "true") for Windows hosts
> (see INFRA-18383 and
> https://github.com/apache/infrastructure-puppet/pull/1564 ).
> That causes build disruptions especially for projects that expect that text
> files should have "native" end-of-lines.
>
> Typical recommendation for Windows is to configure "core.autocrlf=true".
> For instance, here's GitHub's recommendation:
> https://help.github.com/en/articles/configuring-git-to-handle-line-endings
>
> I suggest:
> a) Revert core.autocrlf to the Windows-default value (core.autocrlf=true)
> b) Optionally provide diffrent flavours of Windows build agents. Then
> "windows" label would pick "at random", thus projects could get coverage
> for both settings.
>
> I've raised https://issues.apache.org/jira/browse/INFRA-18763 to set
> core.autocrlf=true.
>
> Motivation:
> 0) GitHub recommends core.autocrlf=true
> 1) Windows editors default to CRLF line endings, so it is common for
> Windows developers to produce CRLF files.
> However the same text files look weird for other platforms, so it makes
> sense to recognize that text files should have platform-native line endings.
> It is exactly what core.autocrlf=true does for Windows (it converts to CRLF
> on checkout and converts to LF when committing the files)
> 2) It is in line with SVN settings, and it is in line with what ASF
> recommends for SVN: https://www.apache.org/dev/svn-eol-style.txt
>
> Any thoughts?
>
> Note: certain developers might want to specify "non-standard" configuration
> (e.g. autocrlf=false on Windows), however I am sure builds.apache.org
> should provide at least a build agent with a **default** Git configuration.
>
> Vladimir



-- 
WBR
Maxim aka solomax

Reply via email to