Skip to content

Preserve symlinked direct installs during update#140

Merged
cbusillo merged 1 commit into
mainfrom
fix/update-preserve-symlink-install
May 25, 2026
Merged

Preserve symlinked direct installs during update#140
cbusillo merged 1 commit into
mainfrom
fix/update-preserve-symlink-install

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • resolve symlinked executables before classifying and replacing direct installs
  • preserve launch symlinks like ~/.local/bin/code -> code-rs/target/release/code during self-update
  • add a focused symlink-resolution regression test

Validation

  • cargo test -p code-cli update::tests
  • ./build-fast.sh

Dogfood note

code update --yes --tag v0.6.103 successfully updated from 0.6.102 to 0.6.103, but it flattened the ~/.local/bin/code symlink. This patch fixes that path for the next update.

@cbusillo cbusillo merged commit 0f50473 into main May 25, 2026
1 check passed
@cbusillo cbusillo deleted the fix/update-preserve-symlink-install branch May 25, 2026 16:54
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.

1 participant