Android autolinking keeps a stale autolinking.json when only bun.lock changes, since bun.lock isn't in the default lockFiles
Maintainer antworten meist innerhalb von 2 Tagen
Ein zugehöriger Pull Request wurde bereits gemerged.
- #59709 von @lazerg — gemerged
Bewertung
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Anfängerfreundlichkeit
- 85/100
- Issue-Typ
- Bug
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- bun, kotlin, react-native
- Bereich
- build-system
Rechercherichtung
Beginne in packages/gradle-plugin/settings-plugin/src/main/kotlin/com/facebook/react/ReactSettingsExtension.kt bei der Standardliste lockFiles um die Zeilen 48-61, die derzeit yarn-, npm-, pnpm- und react-native-Konfigurationsdateien nennt, aber nicht bun. Füge bun.lock zu dieser Standardmenge hinzu, damit Änderungen daran den Autolinking-Konfigurationsbefehl auslösen. Verifiziere das mit dem verlinkten Reproducer, indem du bun install und ./gradlew help ausführst, und prüfe dann, dass build/generated/autolinking/autolinking.json die neu installierte Version meldet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
The settings plugin reruns the autolinking config command only when one of lockFiles changed, and the default list in ReactSettingsExtension.autolinkLibrariesFromCommand is yarn.lock, package-lock.json, package.json, react-native.config.js and pnpm-lock.yaml. A project installed with bun has bun.lock, so when a change touches only bun.lock (a lock-file refresh, or pulling a teammate's one), android/build/generated/autolinking/autolinking.json keeps the libraries' config from before it.
Steps to reproduce
- Clone https://github.com/YevheniiKotyrlo/rn-autolinking-cache-bun-lock.
ReproducerAppinstalls with bun (isolated linker) and listsreact-native-safe-area-contextas^5.10.0; the last commit moves it from 5.10.1 to 5.11.0 inbun.lockalone. git switch --detach HEAD~1, then inReproducerApprunbun install, and inReproducerApp/androidrun./gradlew help.build/generated/autolinking/autolinking.jsonhas"version": "5.10.1"forreact-native-safe-area-context.git switch main, thenbun installand./gradlew helpagain.
Expected: the config command reruns, and autolinking.json has "version": "5.11.0", as npx react-native config now prints.
Actual: autolinking.json still has "version": "5.10.1", while 5.11.0 is installed and npx react-native config prints "version": "5.11.0".
React Native Version
0.89.0-nightly-20261030-4afc5d5b9
Affected Platforms
Build - Windows
Output of npx @react-native-community/cli info
System:
OS: Windows 11 10.0.26300
CPU: "(32) x64 AMD Ryzen 9 9950X3D 16-Core Processor "
Memory: 132.59 GB / 255.67 GB
Binaries:
Node:
version: 26.12.1
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.22
path: C:\Users\yevhe.YEVHENII\AppData\Roaming\npm\yarn.CMD
npm:
version: 12.2.1
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "33"
- "35"
- "35"
- "35"
- "36"
- "37"
- "37"
Build Tools:
- 35.0.0
- 36.0.0
- 36.1.0
- 37.0.0
System Images:
- android-26 | Google APIs Intel x86_64 Atom
- android-28 | Google APIs Intel x86_64 Atom
- android-29 | Google APIs Intel x86_64 Atom
- android-30 | Google APIs Intel x86_64 Atom
- android-31 | Google APIs Intel x86_64 Atom
- android-32 | Google APIs Intel x86_64 Atom
- android-33 | Google APIs Intel x86_64 Atom
- android-34 | Google APIs Intel x86_64 Atom
- android-35 | Google APIs Intel x86_64 Atom
- android-36.1 | Google Play Intel x86_64 Atom
- android-36.1 | Pre-Release 16 KB Page Size Google Play Intel x86_64 Atom
- android-37.0 | Google APIs Intel x86_64 Atom
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-262.9437.185.2621.16467767
Visual Studio: Not Found
Languages:
Java:
version: 17.0.20.1
path: C:\Program Files\Microsoft\jdk-17.0.20.101-hotspot\bin\javac.EXE
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 21.0.0-alpha.1
wanted: 21.0.0-alpha.1
react:
installed: 19.3.0
wanted: 19.3.0
react-native:
installed: 0.89.0-nightly-20261030-4afc5d5b9
wanted: 0.89.0-nightly-20261030-4afc5d5b9
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Stacktrace or Logs
$ grep '"version"' android/build/generated/autolinking/autolinking.json # after step 3
"version": "5.10.1",
$ npx react-native config | grep '"version": "5'
"version": "5.11.0",
MANDATORY Reproducer
https://github.com/YevheniiKotyrlo/rn-autolinking-cache-bun-lock
Screenshots and Videos
No response
- Vorherrschende Sprache
- C++
- Sterne
- 127k
- Forks
- 25.4k
- Ø Merge
- 3 T. 1 Std.
- Gemergte PRs (30 T.)
- 108
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus react/react-native
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
react/react-native#59722 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Android: new WebSocket() crashes the app for a URL that OkHttp or java.net.URI rejectsEvtl. vergeben @sorinc03 hat das vor 1 Tag übernommen. Offen🌐Networking Needs: Author Feedback Needs: Repro Platform: Android
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
react/react-native#59704 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
react/react-native#59694 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Image.resolveAssetSource's TypeScript declaration drops the null it returns for an unknown assetEvtl. vergeben @Hassan1305 hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
react/react-native#59648 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Linking.getInitialURL() returns the task's first link after a link relaunches a reclaimed Android appEvtl. vergeben @YevheniiKotyrlo hat das vor 21 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
react/react-native#59006 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in react/react-native
Ähnliche Issues
-
documentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
EchoTools/nevr-runtime#2042 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Download size and speed show scientific notation between 1000 and 1023 unitsEvtl. vergeben @RaphaelFakhri hat das heute übernommen. Offen
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
kiwix/kiwix-desktop#1570 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Device Request
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 62/100
dresden-elektronik/deconz-rest-plugin#8686 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
aminya/project_options#303 ·