[ 
https://issues.apache.org/jira/browse/CAMEL-24053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18095958#comment-18095958
 ] 

Claus Ibsen commented on CAMEL-24053:
-------------------------------------

Merged via https://github.com/apache/camel/pull/24666

> camel-openapi-rest-dsl-generator tests fail on Windows due to CRLF line 
> endings in .txt fixtures
> ------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-24053
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24053
>             Project: Camel
>          Issue Type: Test
>          Components: tooling
>            Reporter: Adriano Machado
>            Priority: Major
>             Fix For: 4.22.0
>
>
> The RestDslGenerator tests compare generator output \(which uses LF\) 
> byte\-for\-byte against .txt fixtures read as raw UTF\-8 bytes. On Windows 
> with core.autocrlf=true the fixtures check out as CRLF, so the equality 
> assertions fail. There is no .gitattributes rule pinning these fixtures. Fix: 
> add a module .gitattributes with \*.txt text eol=lf. Latent main\-branch bug, 
> surfaced by the new camel\-launcher Windows CI job added under CAMEL\-23703.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to