Skip to content

Fix Windows warnings in yarn android-api-build - #60494

Open
Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D135705049
Open

Abbondanzo wants to merge 1 commit into
react:mainfrom
Abbondanzo:export-D135705049

Conversation

@Abbondanzo

Copy link
Copy Markdown
Contributor

Summary:
On Windows, yarn android-api-build and yarn android-api-validate work but print noise:

  • Node 24 warns DEP0190 on every run, because the Gradle wrapper (gradlew.bat) is started with shell: true plus a separate argument list, which Node only concatenates. The script now passes cmd.exe a single, quoted command line, so arguments with spaces still arrive intact.
  • When the API changed, git diff --no-index printed "LF will be replaced by CRLF" warnings under Git for Windows' default core.autocrlf=true. The diff now runs with core.autocrlf=false; the output is unchanged otherwise.

Changelog: [Internal]

Differential Revision: D135705049

Summary:
On Windows, `yarn android-api-build` and `yarn android-api-validate` work but print noise:

- Node 24 warns `DEP0190` on every run, because the Gradle wrapper (`gradlew.bat`) is started with `shell: true` plus a separate argument list, which Node only concatenates. The script now passes cmd.exe a single, quoted command line, so arguments with spaces still arrive intact.
- When the API changed, `git diff --no-index` printed "LF will be replaced by CRLF" warnings under Git for Windows' default `core.autocrlf=true`. The diff now runs with `core.autocrlf=false`; the output is unchanged otherwise.

Changelog: [Internal]

Differential Revision: D135705049
@meta-codesync

meta-codesync Bot commented Dec 2, 2026

Copy link
Copy Markdown

@Abbondanzo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D135705049.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant