From 4cb52528630d787cce4f7675365d6bdf88327a6f Mon Sep 17 00:00:00 2001 From: DeadBranches <56521874+DeadBranches@users.noreply.github.com> Date: Wed, 17 Jun 2026 21:48:30 -0400 Subject: [PATCH] fix(auto-venv): handle overlay list returning table instead of list `overlay list` now returns `table` instead of `list`. The `in` operator does not support membership checks against tables, causing venv-is-active to fail. Pipe through `get name` to extract the string column before checking overlay membership. --- modules/virtual_environments/auto-venv/venv_helpers.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/virtual_environments/auto-venv/venv_helpers.nu b/modules/virtual_environments/auto-venv/venv_helpers.nu index 45bacc1d3..832a86d61 100644 --- a/modules/virtual_environments/auto-venv/venv_helpers.nu +++ b/modules/virtual_environments/auto-venv/venv_helpers.nu @@ -20,7 +20,7 @@ def get-env [ } export def venv-is-active [] { - '__auto_venv' in (overlay list) + '__auto_venv' in (overlay list | get name) } # Creates a virtual environment under the current directory