have a zshrc in which your bun completions are added to fpath in some other manner than the one the stock installer provides.
have an out of date bun.
run bun upgrade.
What is the expected behavior?
bun should notice that the completions are already present in the shell and do nothing.
What do you see instead?
re-inserts the same two lines into the end of .zshrc every single time.
Additional information
This is the same bug as #7641. That was apparently supposed to be fixed, but the fix was dependent on having a comment line in .zshrc. I put that comment in my .zshrc, and bun kept on adding those two lines anyway, so the fix is not working.
I still think it would probably be better to simply check whether the zsh interactive environment appears to have bun configured or not.
What version of Bun is running?
1.1.7+b0b7db5c0
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
bun upgrade
.What is the expected behavior?
bun should notice that the completions are already present in the shell and do nothing.
What do you see instead?
re-inserts the same two lines into the end of .zshrc every single time.
Additional information
This is the same bug as #7641. That was apparently supposed to be fixed, but the fix was dependent on having a comment line in .zshrc. I put that comment in my .zshrc, and bun kept on adding those two lines anyway, so the fix is not working.
I still think it would probably be better to simply check whether the zsh interactive environment appears to have bun configured or not.