rye
rye copied to clipboard
Rye fails to create virtualenv on WSL or other Linux hosts where the filesystem does not support hard-links
Steps to Reproduce
- Open up a WSL terminal on Windows, or go to a FUSE FS on a linux host
-
rye sync
Expected Result
A valid virtualenv would be created
Actual Result
Observe "tried to hard-link python shim" error from https://github.com/mitsuhiko/rye/blob/cd9a6ba83270640d66c44ea206eff1f19d8a978c/rye/src/bootstrap.rs#L157
Version Info
Local build against main branch at HEAD (currently 33c9723a6fc6649e645850c9558c621b77dfef03).
Stacktrace
No response
Proposed Fix
Commenting out the hardlink code and switching to the softlink code at https://github.com/mitsuhiko/rye/blob/cd9a6ba83270640d66c44ea206eff1f19d8a978c/rye/src/bootstrap.rs#L162 seemed to fix the problem.