-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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 issues for nightly build #34846
Fix issues for nightly build #34846
Conversation
Base commit: 9d08d55 |
@@ -28,7 +28,7 @@ git = "https://github.com/facebook/hermes.git" | |||
if ENV.has_key?('HERMES_ENGINE_TARBALL_PATH') | |||
Pod::UI.puts '[Hermes] Using pre-built Hermes binaries from local path.' if Object.const_defined?("Pod::UI") | |||
source[:http] = "file://#{ENV['HERMES_ENGINE_TARBALL_PATH']}" | |||
elsif version == '1000.0.0' | |||
elsif version == '1000.0.0' || version.start_with?('0.0.0-') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is going to change soon as we're looking for a place where to store hermes tarballs also for nightlies: react-native-community/discussions-and-proposals#508
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's super helpful where we could test nightly without building hermes from source 🎉
cc @kelset as you've been working on this recently |
@cortinico has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
hey @Kudo - for context, I've done changes in this area of the code in two places:
lmk if there's anything I need to modify over there to ensure everything works correctly |
thanks for these information @kelset. the pr is not in hurry at all, as at expo we have some postinstall workaround to fix these issues. i can wait your prs to be landed first and see if there're any necessary changes then. |
oh no this pr landed first, sorry @kelset 😅 let me know if there's anything i can help for your prs . |
ahah no worries, I'll probably have a new small merge conflict to handle but everything should be fine 👍 |
This pull request was successfully merged by @Kudo in 93c3eff. When will my fix make it into a release? | Upcoming Releases |
1 similar comment
This pull request was successfully merged by @Kudo in 93c3eff. When will my fix make it into a release? | Upcoming Releases |
thanks @kelset and everyone helps with pr reviews as always. |
This pull request was successfully merged by @Kudo in 93c3eff. When will my fix make it into a release? | Upcoming Releases |
5 similar comments
This pull request was successfully merged by @Kudo in 93c3eff. When will my fix make it into a release? | Upcoming Releases |
This pull request was successfully merged by @Kudo in 93c3eff. When will my fix make it into a release? | Upcoming Releases |
This pull request was successfully merged by @Kudo in 93c3eff. When will my fix make it into a release? | Upcoming Releases |
This pull request was successfully merged by @Kudo in 93c3eff. When will my fix make it into a release? | Upcoming Releases |
This pull request was successfully merged by @Kudo in 93c3eff. When will my fix make it into a release? | Upcoming Releases |
Summary: There are two issues from nightly builds. #### 1. `VERSION_NAME=1000.0.0-main` in _ReactAndroid/gradle.properties_ the solution is to remove unused _ReactAndroid/gradle.properties_ git revert when publishing package. #### 2. `pod install` error from downloading hermes, e.g. the url is unavailable. `https://github.com/facebook/react-native/releases/download/v0.0.0-20221002-2027-2319f75c8/hermes-runtime-darwin-debug-v0.0.0-20221002-2027-2319f75c8.tar.gz` fix _hermes-engine.podspec_ to support nightly build and build hermes from main branch. ## Changelog [General] [Fixed] - Fix nightly build issues Pull Request resolved: facebook#34846 Test Plan: 1. i cannot fully test publish-npm.js workflow and it stops at `npm publish`. i can just check at this moment, the _ReactAndroid/gradle.properties_ is right. 2. create a `npx react-native init` project and `yarn add react-native@nightly`. patch `node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec` and try `pod install` Reviewed By: cipolleschi Differential Revision: D40021649 Pulled By: cortinico fbshipit-source-id: c9e2701e524f4b16eab6f2c72b5cfa34883082c3
Summary
There are two issues from nightly builds.
1.
VERSION_NAME=1000.0.0-main
in ReactAndroid/gradle.propertiesthe solution is to remove unused ReactAndroid/gradle.properties git revert when publishing package.
2.
pod install
error from downloading hermes, e.g. the url is unavailable.https://github.com/facebook/react-native/releases/download/v0.0.0-20221002-2027-2319f75c8/hermes-runtime-darwin-debug-v0.0.0-20221002-2027-2319f75c8.tar.gz
fix hermes-engine.podspec to support nightly build and build hermes from main branch.
Changelog
[General] [Fixed] - Fix nightly build issues
Test Plan
npm publish
. i can just check at this moment, the ReactAndroid/gradle.properties is right.npx react-native init
project andyarn add react-native@nightly
. patchnode_modules/react-native/sdks/hermes-engine/hermes-engine.podspec
and trypod install