Symlink contains an absolute path after update by `tt uninstall`
Open
Nobody has claimed this yet.
1sp
bug
teamE
- Dominant language
- Go
- Stars
- 113
- Forks
- 18
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 23
Description
$ tt uninstall tt v1.2.0
• Removing binary...
• tt=v1.2.0 is uninstalled.
• Changing symlinks...
• Current "tt" is set to "tt_v1.1.0".
$ ls -l bin
total 26480
lrwxrwxrwx 1 user user 46 Aug 29 17:44 tt -> /home/user/work/tmp/hash_pack/bin/tt_v1.1.0
-rwxrwxr-x 1 user user 13549568 Aug 29 17:40 tt_6038fed
-rwxrwxr-x 1 user user 13565952 Aug 29 17:42 tt_v1.1.0
The symlink must be relative tt -> ./tt_
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the tt uninstall command path responsible for changing symlinks and reproduce the command shown in the issue. Trace how the target path is constructed, then verify with ls -l bin that the resulting tt symlink is relative and points to the selected version.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100