Skip to content

Add bun lockfiles to default lockFiles in autolinkLibrariesFromCommand - #59709

Open
lazerg wants to merge 1 commit into
react:mainfrom
lazerg:fix/issue-59693-bun-lock-autolinking
Open

lazerg wants to merge 1 commit into
react:mainfrom
lazerg:fix/issue-59693-bun-lock-autolinking

Conversation

@lazerg

@lazerg lazerg commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Summary:

The settings plugin only reruns the autolinking config command when one of the default lockFiles changes, and bun's lockfiles aren't in that list. In a bun project, an install that only touches bun.lock keeps the old autolinking.json, so Gradle builds against stale library versions. This adds bun.lock and bun.lockb to the defaults, the same files the SwiftPM staleness check in generate-spm-xcodeproj.js already watches.

Fixes #59693

Changelog:

[ANDROID] [FIXED] - Invalidate the Android autolinking cache when bun.lock or bun.lockb changes

Test Plan:

RNTester's settings.gradle.kts passes its own lockFiles, so it doesn't use the default. Ran ./gradlew :settings-plugin:check in packages/gradle-plugin and it passes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 31, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Oct 31, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android autolinking keeps a stale autolinking.json when only bun.lock changes, since bun.lock isn't in the default lockFiles

1 participant