rye icon indicating copy to clipboard operation
rye copied to clipboard

Rye fails to create virtualenv on WSL or other Linux hosts where the filesystem does not support hard-links

Open branchmispredictor opened this issue 1 year ago • 0 comments

Steps to Reproduce

  1. Open up a WSL terminal on Windows, or go to a FUSE FS on a linux host
  2. 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.

branchmispredictor avatar May 04 '23 22:05 branchmispredictor