Skip to content

Conversation

@tido64
Copy link
Collaborator

@tido64 tido64 commented Nov 13, 2023

Summary:

build_codegen! currently assumes that @react-native/codegen gets installed next to react-native. In a pnpm setup, it's found under /~/react-native/node_modules/@react-native/codegen instead.

However, as @dmytrorykun pointed out, we don't actually need to build it outside of this repository.

Cherry-picks 3dd6a83

Changelog:

[GENERAL] [FIXED] - @react-native/codegen shouldn't be built unless it's in the repo — fixes pod install failures in pnpm setups

Test Plan:

We have a patched version of react-native working in a pnpm setup here: microsoft/rnx-kit#2811

…ps (#41399)

Summary:
`build_codegen!` currently assumes that `react-native/codegen` gets installed next to `react-native`. In a pnpm setup, it's found under `/~/react-native/node_modules/react-native/codegen` instead.

However, as dmytrorykun pointed out, we don't actually need to build it outside of this repository.

## Changelog:

[GENERAL] [FIXED] - `react-native/codegen` shouldn't be built unless it's in the repo — fixes `pod install` failures in pnpm setups

Pull Request resolved: #41399

Test Plan: We have a patched version of `react-native` working in a pnpm setup here: microsoft/rnx-kit#2811

Reviewed By: dmytrorykun

Differential Revision: D51201643

Pulled By: cipolleschi

fbshipit-source-id: 53767ae08686a20f03b3b93abcbc7d5383083872
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Microsoft Partner: Microsoft Partner labels Nov 13, 2023
@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,518,628 -9,130,725
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 9,756,798 -11,276,618
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: a226b90
Branch: main

@huntie huntie merged commit dcdea80 into 0.73-stable Nov 27, 2023
@huntie huntie deleted the tido/0.73/codegen-build branch November 27, 2023 11:07
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. p: Microsoft Partner: Microsoft Partner Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants