dom96 / choosenim

Tool for easily installing and managing multiple versions of the Nim programming language.
BSD 3-Clause "New" or "Revised" License
679 stars 67 forks source link

choosenim destructive: upon restoring it, it destroys some binaries #242

Open timotheecour opened 3 years ago

timotheecour commented 3 years ago

current behavior

choosenim Nim1
nimble install -y nimble
nimble -v
nimble v0.12.0 compiled at 2020-11-14 00:18:47
git hash: 8f7af860c5ce9634af880a7081c6435e1f2a5148

choosenim Nim2
    Prompt: Symlink for 'nimble' detected in '/Users/timothee/.nimble/bin'. Can I remove it? [y/N]
    Answer: y
    Removed symlink pointing to ../pkgs/nimble-0.12.0/nimble
  Installed component 'nimble'
   Switched to Nim (/Users/timothee/git_clone/nim/Nim_prs)
nimble -v
nimble v0.12.0 compiled at 2020-11-10 20:01:12
git hash: 8f7af860c5ce9634af880a7081c6435e1f2a5148

choosenim Nim1
nimble -v
nimble v0.11.0 compiled at 2020-04-04 14:23:52
git hash: 4007b2a778429a978e12307bf13a038029b4c4d9

expected behavior

upon restoring choosenim Nim1 I'd expect to get back nimble v0.12.0

dom96 commented 3 years ago

Why would you expect that? Choosenim even asked you whether you want to overwrite the nimble symlink. If you didn't want that you should have said N