Repository navigation
chore(fonts): commit link-assets manifests as react-native-asset writes them - #722
Merged
Merged
Conversation
…es them A clean checkout of `yarn fonts` (react-native-asset 2.2.15) dirtied android/link-assets-manifest.json and ios/link-assets-manifest.json. The only difference is a trailing newline the generator never emits; the eight Sora entries and their sha1s already match app/assets/fonts. The newline was hand-added in ad61bd7 and nothing re-adds it (prettier ignores ios/ and android/), so store the generator's exact bytes and a repeat run leaves the tree clean. Co-Authored-By: Claude Fable 5.1 <[email protected]>
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.
Why
Tester finding 22: on a clean checkout,
yarn fontsmodifiesandroid/link-assets-manifest.jsonandios/link-assets-manifest.json.What the drift is
Only a trailing newline.
react-native-asset2.2.15 writes the manifest without one; the committed files have one, hand-added in ad61bd7. The eight Sora entries and their sha1s already matchapp/assets/fonts(verified by hashing every file). No pbxproj or build.gradle changes are produced. Prettier ignoresios/andandroid/, and there is no lint-staged hook, so nothing re-adds the newline after generation.The drift is portable, not machine-path-specific: the manifests contain repo-relative paths and sha1s only.
Fix
Commit the generator's exact bytes. Running
npx react-native-assettwice more on this branch leavesgit statusclean.Validation
npx react-native-asseton this commit: no diff.Buzz issue:
97c23eb68890dc6601627cb1d03e29c28c4339f4eee2adf624925a588d35f49b🤖 Generated with Claude Code