margelo / margelo/react-native-nitro-sqlite
Incompatible with Gradle Configuration Cache (Build Fails)
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 565
- Forks
- 53
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 18
Description
When org.gradle.configuration-cache is set to true in gradle.properties, builds fail due to react-native-nitro-sqlite executing NodeJS code to get the contents of the react-native package.json file.
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\WebstormProjects\FOX\node_modules\react-native-nitro-sqlite\android\build.gradle' line: 61
* What went wrong:
Configuration cache problems found in this build.
1 problem was found storing the configuration cache.
- Build file '..\node_modules\react-native-nitro-sqlite\android\build.gradle': line 61: external process started 'node --print require.resolve('react-native/package.json')'
See https://docs.gradle.org/9.0.0/userguide/configuration_cache_requirements.html#config_cache:requirements:external_processes
See the complete report at file:///D:/WebstormProjects/FOX/android/build/reports/configuration-cache/9fvn5smucgpiq2rrlzzb5wc72/43utdihyq22dc050e5qm7ci8t/configuration-cache-report.html
> Starting an external process 'node --print require.resolve('react-native/package.json')' during configuration time is unsupported.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with android/build.gradle at line 61 and review the configuration-cache setting in gradle.properties. Reproduce the failure with org.gradle.configuration-cache=true and inspect how the NodeJS command is invoked during configuration. Done means the Android build completes without reporting an external process configuration-cache problem.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, react-native
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100