这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@SeanBarker182
Copy link
Contributor

Description

This update introduces a function to warn users about long project paths on Windows, which can lead to failures in Android CMake/Ninja builds due to MAX_PATH limitations.

Checklist

  • I have manually tested this, including by generating a new app locally (see docs).

This update introduces a function to warn users about long project paths on Windows, which can lead to failures in Android CMake/Ninja builds due to MAX_PATH limitations.
Copy link
Contributor

@frankcalise frankcalise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it! Couple of thoughts/suggestions I can think of now that we went down this rabbit hole:

  1. Move checkWindowsPathLength into src/tools/validation.ts since it seems to fit there
  2. Consider renaming checkWindowsPathLength to validateProjectPath and we could have platform specific checks in there?
    • For example, Windows needs the length check
    • Honestly, macOS needs a check for spaces in the path because Xcode will die on build if spaces are in the directory I'm pretty sure

@SeanBarker182 SeanBarker182 changed the title feat: add Windows path length check to prevent build issues fix(cli): run project path validation checks Aug 15, 2025
Copy link
Contributor

@frankcalise frankcalise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the refactor! Tested it on my Windows machine and was able to get the warning prompt when appropriate.

image

Co-authored-by: Frank Calise <fcalise@gmail.com>
@SeanBarker182 SeanBarker182 merged commit c54aeec into master Aug 18, 2025
2 of 3 checks passed
@SeanBarker182 SeanBarker182 deleted the fix(windows)/warn-on-deep-project-path branch August 18, 2025 12:48
infinitered-circleci pushed a commit that referenced this pull request Aug 18, 2025
## [11.1.1](v11.1.0...v11.1.1) (2025-08-18)

### Bug Fixes

* **cli:** run project path validation checks ([#2985](#2985)) ([c54aeec](c54aeec))
@infinitered-circleci
Copy link
Collaborator

🎉 This PR is included in version 11.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants