Skip to content

bun: persist global data in Scoop persist dir and migrate legacy ~/.bun#7697

Open
A-Words wants to merge 1 commit intoScoopInstaller:masterfrom
A-Words:fix/bun-persist-dir
Open

bun: persist global data in Scoop persist dir and migrate legacy ~/.bun#7697
A-Words wants to merge 1 commit intoScoopInstaller:masterfrom
A-Words:fix/bun-persist-dir

Conversation

@A-Words
Copy link

@A-Words A-Words commented Feb 28, 2026

Closes #7696

  • Use conventional PR title: <manifest-name[@version]|chore>: <general summary of the pull request>
  • I have read the Contributing Guide

Summary

Fix bun manifest so Bun data is persisted under Scoop persist directory, and add safe migration for legacy %USERPROFILE%\.bun.

Changes

  • Add env_set:
    • BUN_INSTALL=$persist_dir
  • Add env_add_path:
    • "bin"
  • Add persist:
    • "bin", "install"
  • Extend pre_install:
    • migrate %USERPROFILE%\.bun to $persist_dir when persist dir does not exist
    • if both paths exist, skip migration and print warning to avoid overwrite
  • Keep existing AVX2 selection / download / hash / autoupdate logic unchanged

Validation

  • bucket/bun.json parses successfully (ConvertFrom-Json)
  • scoop cat .\bucket\bun.json shows expected new fields
  • bin/test.ps1 could not be executed locally due to missing module: BuildHelpers

@github-actions
Copy link
Contributor

All changes look good.

Wait for review from human collaborators.

bun

  • Lint
  • Description
  • License
  • Hashes
  • Checkver
  • Autoupdate
  • Autoupdate Hash Extraction

Check the full log for details.

@A-Words A-Words force-pushed the fix/bun-persist-dir branch from 57b2565 to 6b2a242 Compare February 28, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: bun does not persist to Scoop persist directory

1 participant