-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.76] Revert "feat: build codegen on postinstall (#46227)" #476
Comments
Thanks for tagging me @cortinico @Saadnajmi sorry for this causing you some trouble 👎🏻
Yeah, that's true but the
Adding this to some README file could solve this issue but we have lots of README files and this detail might be easily missed. I'm going to also loop in @huntie to get his point of view. |
Update: The failure in React Native macOS was unrelated to the use of |
So long as the Microsoft repos aren't blocked by this change, I don't think we need to act urgently. However I agree with @Saadnajmi in terms of keeping the development process across our repos consistent. Worth noting that this particular use case is an optional/convenience The long term fix is to run Codegen from source using |
Picked, will land in 0.76.0 RC1 ✅ |
Actually, we decided not to pick it, as it was not landed in main. |
Yup my bad, I was copy pasting too aggressively 😅 |
@huntie Just to confirm, what in our developer environment is calling |
@blakef in the past weeks, we landed a change that was running |
Target Branch(es)
0.76
Link to commit or PR to be picked
facebook/react-native#46420
Description
Revert this commit that adds a
post install
script for a couple of reasons:postinstall
script causesyarn install
to fail on React Native macOS, where we use Yarn 4. I'm not entirely sure why, but I probably won't debug it for the rest of the reasons.postinstall
scripts (at least inside Microsoft) are viewed as a security risk. Any package in your dependency tree can get compromised, add the phase, and run arbitrary code. This has happened in the past with React Native in the past if I recall correctly. As such, we disablepostinstall
scripts in many of our repos (includingrnx-kit
andreact-native-test-app
).yarn install
. I think it would be sufficient to add some documentation somewhere that it is expected one runsyarn && yarn build
to use this repo locally? That's a fairly common practice in monorepos, at least ones inside Microsoft.The text was updated successfully, but these errors were encountered: