Skip to content

fix: detect bun.lock (Bun v1.2+ text lockfile) in diff-scope CONFIG#1649

Open
hiSandog wants to merge 1 commit into
garrytan:mainfrom
hiSandog:fix/diff-scope-bun-lock-20260522
Open

fix: detect bun.lock (Bun v1.2+ text lockfile) in diff-scope CONFIG#1649
hiSandog wants to merge 1 commit into
garrytan:mainfrom
hiSandog:fix/diff-scope-bun-lock-20260522

Conversation

@hiSandog
Copy link
Copy Markdown
Contributor

Summary

bin/gstack-diff-scope only matched the legacy binary lockfile bun.lockb but not the newer text-based bun.lock introduced in Bun v1.2+. Projects using current Bun versions were silently missing the SCOPE_CONFIG signal when only the lockfile changed.

  • Added bun.lock to the CONFIG detection pattern in gstack-diff-scope
  • Added a test case for the new lockfile format

Test plan

  • Verified bun.lock is now detected as SCOPE_CONFIG=true
  • Verified bun.lockb (legacy) is still detected correctly
  • Added test case detects config via bun.lock (Bun v1.2+ text lockfile) to diff-scope.test.ts

🤖 Generated with [Qoder][https://qoder.com]

gstack-diff-scope only matched the legacy binary lockfile `bun.lockb`
but not the newer text-based `bun.lock` introduced in Bun v1.2+.
Projects using current Bun versions were silently missing the
SCOPE_CONFIG signal when only the lockfile changed.

🤖 Generated with [Qoder][https://qoder.com]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant