You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by lu...@apache.org on 2026/04/13 15:55:18 UTC

(nuttx) 02/02: workflows/build.yml: job MSVC fix Filename too long

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

lupyuen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 587ca7b537080552e7241c5d087e3c6f70fe895e
Author: simbit18 <10...@users.noreply.github.com>
AuthorDate: Fri Apr 3 18:54:34 2026 +0200

    workflows/build.yml: job MSVC fix Filename too long
    
    Git
      - Enabled long path support by setting the core.longpaths setting to true.
    
    Fix
    Cloning into 'esp-hal-3rdparty'...
    HEAD is now at 5d8324708f5 Enable using `esp_timer` on RISC-V devices
    error: unable to create file tf-psa-crypto/drivers/everest/include/tf-psa-crypto/private/everest/kremlib/FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.h: Filename too long
    fatal: Unable to checkout '582ff482038db6e4010dbf6f943d97b05ad06ea5' in submodule path 'components/mbedtls/mbedtls'
    error: unable to create file tf-psa-crypto/drivers/everest/include/tf-psa-crypto/private/everest/kremlib/FStar_UInt64_FStar_UInt32_FStar_UInt16_FStar_UInt8.h: Filename too long
    fatal: Could not reset index file to revision 'HEAD'.
    
    Signed-off-by: simbit18 <si...@gmail.com>
---
 .github/workflows/build.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index db9ef1d36bd..177521caccc 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -451,8 +451,6 @@ jobs:
         run: |
           pip install kconfiglib
 
-      - run: git config --global core.autocrlf false
-
       - name: Download Source Artifact
         uses: actions/download-artifact@v8
         with:
@@ -467,6 +465,8 @@ jobs:
       - name: Run Builds
         run: |
           "ARTIFACTDIR=${{github.workspace}}\sources\buildartifacts" >> $env:GITHUB_ENV
+          git config --global core.autocrlf false
+          git config --global core.longpaths true
           git config --global --add safe.directory ${{github.workspace}}\sources\nuttx
           git config --global --add safe.directory ${{github.workspace}}\sources\apps
           cd sources\nuttx\tools\ci