From 61b7835b0b583dc9bfad7231d818cc58149229a4 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Fri, 1 Nov 2024 14:03:08 +0100 Subject: [PATCH] fix(lint): set core.autocrlf to input --- .github/workflows/lint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9a9ee36..fea89b1 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,6 +17,9 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: + # By default, the GitHub Action on Windows uses `core.autocrlf=true`. + # LF is converted to CRLF, this produces reports from formatters (gofmt/gofumpt/etc.). + - run: 'git config --global core.autocrlf input' - uses: actions/checkout@v4 with: path: ${{ github.repository }} @@ -42,6 +45,9 @@ jobs: os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: + # By default, the GitHub Action on Windows uses `core.autocrlf=true`. + # LF is converted to CRLF, this produces reports from formatters (gofmt/gofumpt/etc.). + - run: 'git config --global core.autocrlf input' - uses: actions/checkout@v4 with: path: ${{ github.repository }}