Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow installation on longer paths than 90 characters #103

Open
georgik opened this issue Dec 17, 2021 · 4 comments
Open

Allow installation on longer paths than 90 characters #103

georgik opened this issue Dec 17, 2021 · 4 comments

Comments

@georgik
Copy link
Collaborator

georgik commented Dec 17, 2021

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
Copy link
Collaborator Author

georgik commented Dec 17, 2021

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
Copy link
Collaborator Author

georgik commented Dec 17, 2021

This seems to be hardwired in the git: aws/aws-iot-device-sdk-cpp-v2#157 (comment)

@georgik
Copy link
Collaborator Author

georgik commented Dec 17, 2021

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
Copy link
Collaborator Author

georgik commented Dec 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant