Skip to content

Cannot clone mbed-OS in Windows if PATH length is already too long #3847

Closed
@SeppoTakalo

Description

@SeppoTakalo

Within mbed-OS longest filename is 165 characters.
Windows API allows only 260 characters.
https://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#maxpath

length file name
155 ./mbed-os/features/FEATURE_UVISOR/targets/TARGET_UVISOR_SUPPORTED/TARGET_STM32F4/TARGET_RELEASE/TARGET_M4/libconfiguration_stm32_cortex_m4_0x10000000_0x0.a
157 ./mbed-os/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_lowpan_border_router.a
157 ./mbed-os/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_thread_border_router.a
163 ./mbed-os/features/FEATURE_UVISOR/targets/TARGET_UVISOR_SUPPORTED/TARGET_ARM_BEETLE_SOC/TARGET_DEBUG/TARGET_M3/libconfiguration_beetle_cortex_m3_0x20000000_0x140.a
165 ./mbed-os/features/FEATURE_UVISOR/targets/TARGET_UVISOR_SUPPORTED/TARGET_ARM_BEETLE_SOC/TARGET_RELEASE/TARGET_M3/libconfiguration_beetle_cortex_m3_0x20000000_0x140.a

So cloning the application mbed-os-example-mesh-minimal requires already 193 characters.

Should we limit the PATH lengths for mbed-OS to allow more flexibility for users? We are now forcing users to work nearly the root folder of C:\

Also, this is a problem of some CI jobs, because they use C:\WB\<job name>\<branch name> which easily is close to 100 characters.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions