Skip to content
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

fix: ensure scripts always have Unix newlines #860

Merged
merged 1 commit into from
Oct 26, 2021

Conversation

tido64
Copy link
Member

@tido64 tido64 commented Oct 20, 2021

Please select one of the following

  • I am removing an existing difference between facebook/react-native and microsoft/react-native-macos 👍
  • I am cherry-picking a change from Facebook's react-native into microsoft/react-native-macos 👍
  • I am making a fix / change for the macOS implementation of react-native
  • I am making a change required for Microsoft usage of react-native

Summary

pod install is currently failing on latest canary with an error message: : command not found. This is caused by Windows newlines in shell scripts. The added .gitattributes file should ensure that they will always be checked out with Unix newlines, even on Windows machines.

Fixes #850

Changelog

[General] [Fixed] - Shell scripts fail to execute because they contain Windows newlines.

Test Plan

Check out the branch on a Windows machine and ensure that scripts (e.g. scripts/ios-configure-glog.sh) don't contain carriage return (\r). Alternatively, verify that Git has the correct attributes set with:

git ls-files | git check-attr --stdin -a

@HeyImChris HeyImChris merged commit 78a879c into master Oct 26, 2021
@tido64 tido64 deleted the tido/fix-newlines-scripts branch October 26, 2021 16:58
acoates-ms added a commit that referenced this pull request Oct 28, 2021
…ore publish (#866)

* Some more changes for bringing up RN64 in devmain Android (#861)

* Build & Packaging changes for bringing up RN64 in devmain

* Fixing gradle clean

* Disable gradle clean in PR builds

* Fix for submit button disappearing bug in comments (#862)

* Add the missing android folder to files in package.json

* Fix for submit button disappear bug in comments

Co-authored-by: Mayuresh Gharpure <[email protected]>

* fix: ensure scripts always have Unix newlines (#860)

* Fix for publishing from stable branches

* remove workspace info before publishing too

* Update rntester lock file when bumping package version

* Apply #875

* Allow newer cocoapod version

Co-authored-by: Anandraj <[email protected]>
Co-authored-by: Mayuresh Gharpure <[email protected]>
Co-authored-by: Mayuresh Gharpure <[email protected]>
Co-authored-by: Tommy Nguyen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pod install fails with latest canary
2 participants