astral-sh / rye

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

git hook triggers new venv #1160

Open detemegandy opened 2 weeks ago

detemegandy commented 2 weeks ago

Steps to Reproduce

  1. create git hooks post-checkout and post-merge to keep in venv in sync. Should do rye self update + rye sync --with-sources
  2. run git checkout or git pull

Expected Result

reusing existing venv

Actual Result

new venv everytime in temp directory

Version Info

rye 0.34.0 commit: 0.34.0 (d31340178 2024-05-20) platform: macos (aarch64) self-python: cpython@3.12.3 symlink support: true uv enabled: true

Stacktrace

No response