Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 4 tasks
jtrv opened this issue Mar 6, 2024 · 0 comments · Fixed by #734
Closed
2 of 4 tasks

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

jtrv opened this issue Mar 6, 2024 · 0 comments · Fixed by #734
Labels
C-bug Something isn't working

Comments

@jtrv
Copy link

jtrv commented Mar 6, 2024

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

@jtrv jtrv added the C-bug Something isn't working label Mar 6, 2024
jtrv pushed a commit to jtrv/topgrade that referenced this issue Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant