astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.6k stars 466 forks source link

Rye installer doesn't run if last installation aborts #1391

Open srsng opened 4 days ago

srsng commented 4 days ago

Steps to Reproduce

  1. Install rye by run rye-x86_64-windows.exe
  2. some problems happened to my connetcion with github
  3. the installation aborted and I pressed a key to exit.
  4. the installer will exit quickly if I rerun it.
  5. I can not reinstall rye unless I remove the data file .rye.

rye.exe and uv.exe is installed when this happen, btw.

Actually, it may happen after any abort (Ctrl+C as well).
I think the problem can be fixed by checking the integrality of the data file .rye when run the installer.

Expected Result

No.

Actual Result

No.

Version Info

No.

Stacktrace

No response