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

refactor: skip Bun update if it is not installed via official script #894

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SteveLauC
Copy link
Member

What does this PR do

After this PR, we only update bun if it is installed through the official script. We determine this by checking if the binary location is a descendant of bun_install_env, which will be set through the environment variable $BUN_INSTALL, and defaults to $HOME/.bun.

Closes #892

Standards checklist

  • The PR title is descriptive.
  • I have read CONTRIBUTING.md
  • Optional: I have tested the code myself

For new steps

  • Optional: Topgrade skips this step where needed
  • Optional: The --dry-run option works with this step
  • Optional: The --yes option works with this step if it is supported by
    the underlying command

If you developed a feature or a bug fix for someone else and you do not have the
means to test it, please tag this person here.

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.

Add bun sudo option? bun doesnt upgrade without it if installed on /usr/bin(from aur)
1 participant