Skip to content

fix: RNGP using node invocation non-compatible with Gradle Compilation Cache#54801

Closed
tjzel wants to merge 1 commit intofacebook:mainfrom
tjzel:@tjzel/rngp-ccache
Closed

fix: RNGP using node invocation non-compatible with Gradle Compilation Cache#54801
tjzel wants to merge 1 commit intofacebook:mainfrom
tjzel:@tjzel/rngp-ccache

Conversation

@tjzel
Copy link
Copy Markdown
Contributor

@tjzel tjzel commented Dec 5, 2025

Summary:

Invoking Runtime.getRuntime().exec() is not compatible with Gradle Configuration Cache and providers should be used instead.

This error hasn't surfaced yet due to fact that this branch of code is rarely hit as the users usually provide correct path to the CLI in their app/build.gradle file. I stumbled upon it accidentally when bumping RN in monorepo and the CLI path was no longer valid.

Changelog:

[ANDROID] [FIXED] - RNGP using node invocation non-compatible with Gradle Compilation Cache

Test Plan:

I tested it in a rnc-cli app, where I provided an invalid path for cliFile - the error was fixed after applying this patch.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 5, 2025
@facebook-github-bot facebook-github-bot added p: Software Mansion Partner: Software Mansion Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Dec 5, 2025
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Dec 5, 2025

@cortinico has imported this pull request. If you are a Meta employee, you can view this in D88492310.

@meta-codesync meta-codesync bot closed this in dc73ec4 Dec 8, 2025
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Dec 8, 2025
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Dec 8, 2025

@cortinico merged this pull request in dc73ec4.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @tjzel in dc73ec4

When will my fix make it into a release? | How to file a pick request?

@cortinico
Copy link
Copy Markdown
Contributor

@tjzel I would have to revert this one because is breaking tests on main.

Could you resubmit it and verify that tests are not broken with: ./gradlew -p packages/gradle-plugin/ test

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been reverted by b1b2cab.

@tjzel
Copy link
Copy Markdown
Contributor Author

tjzel commented Dec 9, 2025

Sure, I'll check.

@tjzel
Copy link
Copy Markdown
Contributor Author

tjzel commented Dec 9, 2025

@cortinico I opened #54829

meta-codesync bot pushed a commit that referenced this pull request Dec 10, 2025
Summary:
Invoking `Runtime.getRuntime().exec()` is not compatible with Gradle Configuration Cache and providers should be used instead.

This error hasn't surfaced yet due to fact that this branch of code is rarely hit as the users usually provide correct path to the CLI in their `app/build.gradle` file. I stumbled upon it accidentally when bumping RN in monorepo and the CLI path was no longer valid.

Re-opened due to failing tests in the previous PR #54801

## Changelog:

[ANDROID] [FIXED] - RNGP using node invocation non-compatible with Gradle Compilation Cache

Pull Request resolved: #54829

Test Plan:
I tested it in a rnc-cli app, where I provided an invalid path for `cliFile` - the error was fixed after applying this patch.

`./gradlew -p packages/gradle-plugin/ test` now works properly.

Reviewed By: mdvacca

Differential Revision: D88757054

Pulled By: cortinico

fbshipit-source-id: 07b86f8cf4d242dee30b97b7768602ff9b60ed54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Software Mansion Partner: Software Mansion Partner Reverted Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants