Android autolinking keeps a stale autolinking.json when only bun.lock changes, since bun.lock isn't in the default lockFiles
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 85/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- bun, kotlin, react-native
- 領域
- build-system
調査の方向性
packages/gradle-plugin/settings-plugin/src/main/kotlin/com/facebook/react/ReactSettingsExtension.kt の、48〜61行目あたりにあるデフォルトの lockFiles リストから始めてください。現在そこには yarn、npm、pnpm、react-native の設定ファイルが挙げられていますが、bun は含まれていません。そのデフォルトのセットに bun.lock を追加し、その変更が autolinking の設定コマンドをトリガーするようにしてください。リンクされた再現手順を使って、bun install と ./gradlew help を実行して検証し、その後 build/generated/autolinking/autolinking.json に新しくインストールしたバージョンが報告されていることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- C++
- スター
- 127k
- フォーク
- 25.4k
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 67
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
react/react-native のほかの issue
-
Fantom runs end 5 seconds after their last test, with "Jest did not exit one second after the test run has completed": globalTeardown never clears its shutdown timer対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
react/react-native#59699 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
react/react-native#59694 ·
メンテナーはふだん 2 日以内に返信
-
Image.resolveAssetSource's TypeScript declaration drops the null it returns for an unknown asset対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
react/react-native#59648 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Linking.getInitialURL() returns the task's first link after a link relaunches a reclaimed Android app対応中かも @YevheniiKotyrlo が 17 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
react/react-native#59006 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
Fabric TextInput: prepareForRecycle leaves stale inputAccessoryViewButtonLabel (empty Done bar)対応中かも @jkasprzyk17 が 16 日前に担当しました。 オープンNeeds: Author Feedback Needs: Repro
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
react/react-native#58952 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
react/react-native の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
objectionary/game-of-life#74 ·
-
bug fmt low priority
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
qbittorrent/qBittorrent#25176 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
lxqt/lxqt-powermanagement#500 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
scp-fs2open/fs2open.github.com#7965 ·
メンテナーはふだん 1 日以内に返信