react-native upgrade overwrites .flowconfig
For all other files but .flowconfig it asks if I want to override/skip.
Noticed when upgrading from 0.15 to 0.16
@foghina can you take a look?
Hey frantic, thanks for reporting this issue!
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
- If you don't know how to do something or not sure whether some behavior is expected or a bug, please ask on StackOverflow with the tag
react-nativeor for more real time interactions, ask on Discord in the #react-native channel. - If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
- We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!
This is caused by 2566ed (cc @AaaChiuuu); we're using raw copy commands instead of going through mem-fs. We should probably read the file in memory and do the replacements before writing it using this.fs.write.
I filed t9748598 on myself. I'll hopefully get to it next week!
@AaaChiuuu have you had a chance to look at it? I was going to work on it but looks like it would basically revert this https://github.com/facebook/react-native/commit/2566ed80899a4a071ed0e9c80fca0f28c2125a76#diff-0693784fbf2e944793d2c1f187991860 which makes me confused
I haven't. @vjeux would know what's the best path to take with flowconfig.
I believe the motivation was to avoid maintaining 2 flowconfigs. From the commit Mike linked seems it would be pretty easy to apply the fix Felix suggested On Wed, Apr 20, 2016 at 2:15 PM Aaron Chiu [email protected] wrote:
I haven't. @vjeux https://github.com/vjeux would know what's the best path to take with flowconfig.
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/facebook/react-native/issues/4852#issuecomment-212608091
Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/react-native-upgrade-overwrites-flowconfig
Product Pains has been very useful in highlighting the top bugs and feature requests: https://productpains.com/product/react-native?tab=top
Also, if this issue is a bug, please consider sending a pull request with a fix.