Skip to content

[Inventory-UI] git clone fails on Windows due to long file paths #133

@santhosh-7777

Description

@santhosh-7777

Environment

  • OS: Windows 11
  • Git version: (2.48.1)

Problem

Cloning Inventory-UI fails on Windows with the following error:
error: unable to create file src/app/app-modules/inventory/indent/
indent-order-worklist/main-store-indent-order-worklist/
indent-dispenses/manual-indent-dispense/
select-batch-for-indent-item/
select-batch-for-indent-item.component.css: Filename too long
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.

Root Cause

Windows has a 260 character MAX_PATH limit by default.
Some file paths in Inventory-UI exceed this limit.

Fix (Verified)

Run this before cloning:
git config --global core.longpaths true
After enabling this, clone succeeds without errors.

Suggestion

Add this to README under a Windows-specific setup section:

  • Mention core.longpaths requirement
  • Add note about Windows PATH limitations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions