idf-installer icon indicating copy to clipboard operation
idf-installer copied to clipboard

Allow installation on longer paths than 90 characters

Open georgik opened this issue 4 years ago • 4 comments

The installation is limited to 90 characters. The installer blocks the installation in case of longer path. It prevents problem with ccache and long path build in libraries like libsodium.

Desired state: user can deploy ESP-IDF to longer paths

georgik avatar Dec 17 '21 07:12 georgik

Another issue discovered with git:

error: unable to create file examples/bluetooth/bluedroid/ble/ble_throughput/throughput_client/main/example_ble_client_throughput.c: Filename too long

Solution:

git config --system core.longpaths true

This displays another problem when updating submodules:

Cloning into 'C:/projects/tmp/0123456789/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789/3/components/bootloader/subproject/components/micro-ecc/micro-ecc'...
fatal: '$GIT_DIR' too big

This seems to affect all modules with longer path.

georgik avatar Dec 17 '21 11:12 georgik

This seems to be hardwired in the git: https://github.com/aws/aws-iot-device-sdk-cpp-v2/issues/157#issuecomment-693201747

georgik avatar Dec 17 '21 11:12 georgik

Alternative installation using ZIP archive also fails on long path:

Running command: cmd.exe /c ""xcopy" /s /e /i /h /q "C:\projects\tmp\AppData\Local\Temp\is-J0AQK.tmp\esp-idf-v4.3.1" "C:\projects\tmp\0123456789\0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\b""
                          Insufficient memory

georgik avatar Dec 17 '21 12:12 georgik

WIndows unzip fails in case of extracting to long path even with UNC path image

georgik avatar Dec 17 '21 12:12 georgik