1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-01-06 21:07:49 +08:00
Commit Graph

10 Commits

Author SHA1 Message Date
Stephan Schielke
5d9af9e97f
Merge f61f623b5b into 72acd2ca90 2025-12-08 08:37:36 -08:00
Jacob Rogers
801f09c1ca
fix(poetry-env): add support for poetry 2 (#13260) 2025-08-12 10:37:03 +02:00
Developer
f61f623b5b fix(poetry-env): handle in-project virtual environments when path returns "."
When Poetry is configured with virtualenvs.in-project = true,
poetry env info --path returns "." instead of the full path.
This causes the plugin to fail with "no such file or directory: ./bin/activate".

Changes:
- Handle case where poetry returns "." by converting to $PWD/.venv
- Add safety check to ensure activate script exists before sourcing
- Maintain backward compatibility with existing setups

Fixes issue with in-project virtual environments used in monorepos and git worktrees.
2025-06-25 00:51:17 +01:00
Kate Sullivan
ca5471fe49
fix(poetry-env): switch venv between poetry dirs (#12804)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-11-14 09:00:48 +01:00
Alex Rosenfeld
0987eee190
fix(poetry-env): only run deactivate if needed (#12701)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-10-08 21:44:18 +02:00
Carlo Sala
5d2d35cd17
fix(poetry-env): do not deactivate in a subdir
Closes #12377
2024-04-23 16:21:21 +02:00
Kate Sullivan
31f2025e0f
feat(poetry-env): support changing between two venv dirs (#12346)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-04-12 09:24:54 +02:00
vladislav doster
1d09c6bb0a
style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
Zikoeng Xi
a168efe73e
fix(poetry-env): activate only if env exists (#12301) 2024-03-26 09:54:04 +01:00
ajatkj
1cc32be5f6
feat(poetry-env): create plugin (#11069) 2023-09-20 15:51:27 +01:00