Fix validate-overrides for react-native GitHub org rename#16280
Merged
Conversation
The upstream React Native repo moved from facebook/react-native to react/react-native. Update the hardcoded GitHub URLs in react-native-platform-override to use the new org, fixing validate-overrides failures caused by 301 redirects that node-fetch cannot handle cleanly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
vmoroz
approved these changes
Jun 23, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
acoates-ms
approved these changes
Jun 23, 2026
JunielKatarn
approved these changes
Jun 23, 2026
Performance Test ResultsBranch: ✅ Passed161 scenario(s) across 28 suite(s) — no regressionsSectionList
FlatList
TouchableOpacity
ScrollView
TouchableHighlight
Pressable
Modal
Image
ActivityIndicator
Switch
Button
TextInput
View
Text
SectionList.native-perf-test.ts
FlatList.native-perf-test.ts
TouchableHighlight.native-perf-test.ts
TouchableOpacity.native-perf-test.ts
Pressable.native-perf-test.ts
ScrollView.native-perf-test.ts
ActivityIndicator.native-perf-test.ts
TextInput.native-perf-test.ts
Switch.native-perf-test.ts
Button.native-perf-test.ts
Modal.native-perf-test.ts
Image.native-perf-test.ts
View.native-perf-test.ts
Text.native-perf-test.ts
|
The root package.json pinned react-native-platform-override to a published npm version (0.0.0-canary.1017), which meant yarn validate-overrides ran the old npm code rather than the local workspace source. Since the npm version still has the old facebook/react-native GitHub URL, CI agents that cannot follow the 301 redirect fail. Change the dependency to workspace:* so Yarn resolves to the local workspace package (which contains our URL fix), matching the pattern used by other workspace tools (@rnw-scripts/*). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
The upstream React Native repo moved from facebook/react-native to react/react-native. This broke yarn validate-overrides because the react-native-platform-override tool has hardcoded GitHub URLs that now return 301 redirects. For PRs like #16245 that update the override TEMP files, validate-overrides kicks in and tries to validate these files against their base version in the RN repo. But since the path has changed, the network call now fails repeatedly.
This PR updates the hardcoded GitHub URLs in react-native-platform-override tool to use the new org path.
Type of Change
Why
For PRs like #16245 that update the override TEMP files, validate-overrides kicks in and tries to validate these files against their base version in the RN repo. But since the path has changed, the network call now fails repeatedly.
What
This PR updates the 2 hardcoded URLs in the tool's source:
Why only source files are checked in -
The compiled output (lib-commonjs/) is in .gitignore and is not checked into the repo. During CI, yarn build compiles all packages including react-native-platform-override, regenerating lib-commonjs/ from the TypeScript source before yarn validate-overrides runs. So only the .ts source changes are needed.
Testing
3.. Verified new URLs work:
Changelog
No
Microsoft Reviewers: Open in CodeFlow