Browse Source

ci: package .zip source archives using LF newlines

Previously we provided a `.zip` archive with CRLF newlines and a
`.tar.gz` archive with LF newlines.  This is no longer consistent
with modern conventions.  Use LF newlines in both.

Fixes: #25467
Brad King 1 year ago
parent
commit
b0315c83dc
2 changed files with 7 additions and 1 deletions
  1. 1 1
      .gitlab/os-linux.yml
  2. 6 0
      Help/release/dev/rel-zip-newlines.rst

+ 1 - 1
.gitlab/os-linux.yml

@@ -509,7 +509,7 @@
         - v="$(.gitlab/ci/cmake_version.sh)"
         - mkdir -p build/
         - git archive --format=tgz --prefix="cmake-$v/" -o "build/cmake-$v.tar.gz" HEAD
-        - git -c core.autocrlf=true -c core.eol=crlf archive --format=zip --prefix="cmake-$v/" -o "build/cmake-$v.zip" HEAD
+        - git archive --format=zip --prefix="cmake-$v/" -o "build/cmake-$v.zip" HEAD
 
     interruptible: true
 

+ 6 - 0
Help/release/dev/rel-zip-newlines.rst

@@ -0,0 +1,6 @@
+rel-zip-newlines
+----------------
+
+* The official ``.zip`` source archive provided on
+  `cmake.org <https://cmake.org/download/>`_ now uses LF newlines,
+  instead of CRLF newlines, for consistency with modern conventions.