Comments (6)
Thanks @pvinis
I actually think (have not tested) that the bat rule should be in a template/_gitattributes
in facebook/react-native.
gradlew.bat
is committed to the facebook/react-native with crlf
line endings, but when I try to create a new project from the template on mac, I get gradlew.bat
with lf
line endings. And as there's no .gitattributes
in the new project (from the default template), the file would be converted to lf
line endings anyway on staging/commit.
from rn-diff-purge.
@pvinis This i blocking npx react-native upgrade
for me as well.
As I see it we could fix it in 2 ways:
- rewrite the history/move tags in this repository to ignore/move
.gitattributes
- Add logic to handle the issue in https://github.com/react-native-community/cli/blob/master/packages/cli/src/commands/upgrade/upgrade.ts
Do you have any preference on a solution?
from rn-diff-purge.
I commented on it here react-native-community/upgrade-support#71 (comment).
Since I don't use Windows for developing RN stuff, I am not too interested or too capable to fix this at this point. I tried to fix it and it caused problems for others.
I'm happy to help if I can, but yea, feel free to work on this in any way you think is best.
I would need to spend time to refamiliarize myself with the problem and for the next month I can't do that unfortunately, but I'm happy to chat about it and or see the problem or a video of it or whatever and suggest solutions. If you feel any of these two makes the most sense, do it 👍. The RN team and community are always welcoming new fixes in tooling! I know I love these :D
from rn-diff-purge.
@pvinis Do you have a reference for the original reason to add the .gitattributes
file? It seems like something that should be fixed in the official react native template
from rn-diff-purge.
I would say it's facebook/react-native#28274
from rn-diff-purge.
sounds like that would fix things then. maybe this exact change can be made into a PR for the RN repo. add a template gitattr and fix the line endings, then things should work fine. we can remove the gitattr from rndiffpurge after that 👌. good investigation.
from rn-diff-purge.
Related Issues (20)
- 0.61.1 is incorrectly using react 16.8.1 HOT 5
- git apply command fails with and error HOT 1
- A step by step guide HOT 1
- Proposal: automate workflow with GitHub Actions HOT 3
- Typo in 0.61.5 > 0.62.2 diff? HOT 2
- Cannot read property 'toLowerCase' of undefined
- Add RN 0.63 HOT 1
- Missing release tags in this repo cause @react-native-community/cli to not prompt for RN upgrades HOT 3
- 0.65.1 -> 0.66.0 is react-native-codegen really should be removed? HOT 5
- Get 404 not found when using Upgrade Helper HOT 1
- 0.64.3 is missing from the matrix. HOT 1
- Error upgrading react-native with "npx react-native upgrade" HOT 1
- Missing some versions HOT 1
- Gemfile.lock removed in v67.5 diff but not found in core changes HOT 1
- React Native upgrade helper website not responding HOT 3
- react-native upgrade and Upgrade-helper is NOT WORKING HOT 1
- Support nightly releases HOT 2
- [0.73] Improve diffing for Kotlin Migration HOT 2
- RN v0.73.3 is missing from the upgrade helper - Publish job failed HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rn-diff-purge.