This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 4ec20cd0de74 CAMEL-24053: Pin golden test fixtures to LF for Windows CI
4ec20cd0de74 is described below

commit 4ec20cd0de7481251a017ad7713b472672b469b4
Author: Adriano Machado <[email protected]>
AuthorDate: Mon Jul 13 13:17:49 2026 -0400

    CAMEL-24053: Pin golden test fixtures to LF for Windows CI
    
    Add module .gitattributes rules to pin golden test fixtures to LF line
    endings in camel-openapi-rest-dsl-generator, camel-java-io, and
    camel-salesforce-maven-plugin. Tests in these modules compare generator
    output (LF) against fixtures read as raw bytes, so CRLF checkout on
    Windows breaks the equality assertions.
    
    Closes #24666
    
    Co-Authored-By: Claude Opus 4.8 <[email protected]>
---
 .../camel-salesforce/camel-salesforce-maven-plugin/.gitattributes    | 4 ++++
 core/camel-java-io/.gitattributes                                    | 4 ++++
 tooling/openapi-rest-dsl-generator/.gitattributes                    | 5 +++++
 3 files changed, 13 insertions(+)

diff --git 
a/components/camel-salesforce/camel-salesforce-maven-plugin/.gitattributes 
b/components/camel-salesforce/camel-salesforce-maven-plugin/.gitattributes
new file mode 100644
index 000000000000..f5c06d194a26
--- /dev/null
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/.gitattributes
@@ -0,0 +1,4 @@
+# CamelSalesforceMojoOutputTest compares codegen output (LF) against golden 
.java fixtures
+# read as raw UTF-8 bytes. Pin generated fixtures to LF so a Windows checkout
+# (core.autocrlf=true) does not convert them to CRLF and break the assertions.
+src/test/resources/generated/** text eol=lf
diff --git a/core/camel-java-io/.gitattributes 
b/core/camel-java-io/.gitattributes
new file mode 100644
index 000000000000..a11820abbbab
--- /dev/null
+++ b/core/camel-java-io/.gitattributes
@@ -0,0 +1,4 @@
+# JavaDslModelWriterTest compares generator output (LF) against .txt fixtures 
read as
+# raw UTF-8 bytes. Pin fixtures to LF so a Windows checkout 
(core.autocrlf=true) does
+# not convert them to CRLF and break the equality assertions.
+*.txt text eol=lf
diff --git a/tooling/openapi-rest-dsl-generator/.gitattributes 
b/tooling/openapi-rest-dsl-generator/.gitattributes
new file mode 100644
index 000000000000..8dbfd6253ab8
--- /dev/null
+++ b/tooling/openapi-rest-dsl-generator/.gitattributes
@@ -0,0 +1,5 @@
+# The generator emits source with LF line endings, and the tests compare that
+# output byte-for-byte against these .txt fixtures. Pin the fixtures to LF so a
+# Windows checkout (core.autocrlf=true) does not convert them to CRLF and break
+# the equality assertions.
+*.txt text eol=lf

Reply via email to