Skip to content

Bun packages step should use $BUN_INSTALL/install/global/package.json #733

@jtrv

Description

@jtrv

Erroneous Behavior

Bun global packages are not updated when using a custom $BUN_INSTALL path.

Expected Behavior

Bun global packages should update using the $BUN_INSTALL path.

Steps to reproduce

# install bun with custom $BUN_INSTALL path
BUN_INSTALL="$HOME"/.local/share/bun curl -fsSL https://bun.sh/install | bash
# install cowsay version 1.5.0 globally
bun i -g cowsay@1.5.0
# set package.json to allow updating to the next version of cowsay
sed -i 's/"cowsay": "1.5.0"/"cowsay": "^1.5.0"/' "$BUN_INSTALL"/install/global/package.json
# test bun_packages step
topgrade --only bun_packages

Possible Cause

.bun/install.global/package.json is hardcoded when it should use $BUN_INSTALL/install/global/package.json

Problem persists without calling from topgrade

  • Yes
  • No

Did you run topgrade through Remote Execution

  • Yes
  • No

Additional Details

  • Operation System/Version
    Arch Linux, Kernel: 6.7.6-zen1-1-zen

  • Installation
    Cargo

  • Topgrade version (topgrade -V)
    Topgrade 14.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions