Removing test-driver symlink in ios third party install script #14638
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation (required)
After execution of
scripts/ios-install-third-party.sh
a symlink is created :<YOUR-APP-PATH>/node_modules/react-native/third-party/glog-0.3.4/test-driver
that is pointing to
test-driver -> /usr/share/automake-1.14/test-driver
This can be executed indirectly by
react-native run-ios
.This breaks the bundle process if the system don't contain a given file under the link and having this strict dependency on the system setup is not a good practice.
Once the
test-driver
symlink is created android app release is failing, for :./gradlew assembleRelease
the
:app:bundleReleaseJsAndAssets
returns :Related issues:
#14417
#14464
#14548
Test Plan (required)
react-native init <YOUR-APP>
<YOUR-APP>/
react-native run-ios
soscripts/ios-install-third-party.sh
is executed.android/
./gradlew assembleRelease
(it will work properly after this fix and fail if thetest-driver
symlink exists)Summary
IMHO we should resolve the issue with this quick fix and apply the proper fix later after the new version of
google/glog
will be released.The proper cleanup of files generated by autotools was already applied : google/glog#188
Please let me know if I should provide more details : @javache, @mhorowitz, @hramos