text: Title: receiving a key error when using depends
  Body: ## Issue
  
  receiving a key error when using `depends`
  
  ## Environment
  
  Provide at least:
  
  - OS: windows
  
  <details open>
  <summary>Output of <code>pip list</code> of the host Python, where <code>tox</code> is installed</summary>
  
  ```console
  Package               Version Editable project location
  --------------------- ------- ----------------------------------------
  cachetools            5.5.2
  chardet               5.2.0
  click                 8.1.8
  colorama              0.4.6
  distlib               0.3.9
  filelock              3.17.0
  iniconfig             2.0.0
  nodeenv               1.9.1
  nodejs-wheel-binaries 22.14.0
  packaging             24.2
  platformdirs          4.3.6
  pluggy                1.5.0
  pyproject-api         1.9.0
  pyright               1.1.393
  pytest                8.3.5
  pytest-mock           3.14.0
  ruff                  0.9.6
  scapy                 2.6.1
  tox                   4.24.1
  typing-extensions     4.12.2
  virtualenv            20.29.2
  ```
  
  </details>
  
  ## Output of running tox
  
  <details open>
  <summary>Output of <code>tox -rvv</code></summary>
  
  ```console
  .pkg: 540 I find interpreter for spec PythonSpec(major=3, minor=11, free_threaded=False) [virtualenv\discovery\builtin.py:76]
  .pkg: 564 D got python info of %s from (WindowsPath('C:/Users/<redacted>/AppData/Roaming/uv/python/cpython-3.11.6-windows-x86_64-none/python.exe'), WindowsPath('C:/Users/<redacted>/AppData/Local/pypa/virtualenv/py_info/2/9c37dba83290a6bc7ba9bf3e32702404ded634937d38bd1937b6ad242b6786b0.json')) [virtualenv\app_data\via_disk_folder.py:133]
  .pkg: 566 D filesystem is not case-sensitive [virtualenv\info.py:26]
  .pkg: 567 I proposed PythonInfo(spec=CPython3.11.6.final.0-64, system=C:\Users\<redacted>\AppData\Roaming\uv\python\cpython-3.11.6-windows-x86_64-none\python.exe, exe=C:\path\to\\.venv\Scripts\python.exe, platform=win32, version='3.11.6 (main, Oct  2 2023, 23:36:41) [MSC v.1929 64 bit (AMD64)]', encoding_fs_io=utf-8-cp1252) [virtualenv\discovery\builtin.py:83]
  .pkg: 567 D accepted PythonInfo(spec=CPython3.11.6.final.0-64, system=C:\Users\<redacted>\AppData\Roaming\uv\python\cpython-3.11.6-windows-x86_64-none\python.exe, exe=C:\path\to\\.venv\Scripts\python.exe, platform=win32, version='3.11.6 (main, Oct  2 2023, 23:36:41) [MSC v.1929 64 bit (AMD64)]', encoding_fs_io=utf-8-cp1252) [virtualenv\discovery\builtin.py:85]
  .pkg: 571 D symlink on filesystem does work [virtualenv\info.py:45]
  .pkg: 658 I find interpreter for spec PythonSpec(path=C:\path\to\\.venv\Scripts\python.exe) [virtualenv\discovery\builtin.py:76]
  .pkg: 659 I proposed PythonInfo(spec=CPython3.11.6.final.0-64, system=C:\Users\<redacted>\AppData\Roaming\uv\python\cpython-3.11.6-windows-x86_64-none\python.exe, exe=C:\path\to\\.venv\Scripts\python.exe, platform=win32, version='3.11.6 (main, Oct  2 2023, 23:36:41) [MSC v.1929 64 bit (AMD64)]', encoding_fs_io=utf-8-cp1252) [virtualenv\discovery\builtin.py:83]
  .pkg: 659 D accepted PythonInfo(spec=CPython3.11.6.final.0-64, system=C:\Users\<redacted>\AppData\Roaming\uv\python\cpython-3.11.6-windows-x86_64-none\python.exe, exe=C:\path\to\\.venv\Scripts\python.exe, platform=win32, version='3.11.6 (main, Oct  2 2023, 23:36:41) [MSC v.1929 64 bit (AMD64)]', encoding_fs_io=utf-8-cp1252) [virtualenv\discovery\builtin.py:85]
  .pkg: 669 I find interpreter for spec PythonSpec(major=3, minor=12, free_threaded=False) [virtualenv\discovery\builtin.py:76]
  .pkg: 669 I proposed PythonInfo(spec=CPython3.11.6.final.0-64, system=C:\Users\<redacted>\AppData\Roaming\uv\python\cpython-3.11.6-windows-x86_64-none\python.exe, exe=C:\path\to\\.venv\Scripts\python.exe, platform=win32, version='3.11.6 (main, Oct  2 2023, 23:36:41) [MSC v.1929 64 bit (AMD64)]', encoding_fs_io=utf-8-cp1252) [virtualenv\discovery\builtin.py:83]
  .pkg: 694 D got python info of %s from (WindowsPath('C:/Users/<redacted>/AppData/Local/Programs/Python/Python312/python.exe'), WindowsPath('C:/Users/<redacted>/AppData/Local/pypa/virtualenv/py_info/2/dd6c737d4978187c6f29e7d126668861b98bda13ce88e41754904974690814f2.json')) [virtualenv\app_data\via_disk_folder.py:133]
  .pkg: 695 I proposed Pep514PythonInfo(spec=CPython3.12.3.final.0-64, exe=C:\Users\<redacted>\AppData\Local\Programs\Python\Python312\python.exe, platform=win32, version='3.12.3 (tags/v3.12.3:f6650f9, Apr  9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)]', encoding_fs_io=utf-8-utf-8) [virtualenv\discovery\builtin.py:83]
  .pkg: 695 D accepted Pep514PythonInfo(spec=CPython3.12.3.final.0-64, exe=C:\Users\<redacted>\AppData\Local\Programs\Python\Python312\python.exe, platform=win32, version='3.12.3 (tags/v3.12.3:f6650f9, Apr  9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)]', encoding_fs_io=utf-8-utf-8) [virtualenv\discovery\builtin.py:85]
  .pkg: 707 I find interpreter for spec PythonSpec(major=3, minor=13, free_threaded=False) [virtualenv\discovery\builtin.py:76]
  .pkg: 708 I proposed PythonInfo(spec=CPython3.11.6.final.0-64, system=C:\Users\<redacted>\AppData\Roaming\uv\python\cpython-3.11.6-windows-x86_64-none\python.exe, exe=C:\path\to\\.venv\Scripts\python.exe, platform=win32, version='3.11.6 (main, Oct  2 2023, 23:36:41) [MSC v.1929 64 bit (AMD64)]', encoding_fs_io=utf-8-cp1252) [virtualenv\discovery\builtin.py:83]
  .pkg: 709 D discover PATH[0]=C:\path\to\\.venv\Scripts [virtualenv\discovery\builtin.py:152]
  .pkg: 709 D discover PATH[1]=C:\Program Files\PowerShell\7 [virtualenv\discovery\builtin.py:152]
  .pkg: 711 D discover PATH[2]=C:\Program Files\Eclipse Adoptium\jdk-17.0.11.9-hotspot\bin [virtualenv\discovery\builtin.py:152]
  .pkg: 711 D discover PATH[3]=C:\WINDOWS\system32 [virtualenv\discovery\builtin.py:152]
  .pkg: 719 D discover PATH[4]=C:\WINDOWS [virtualenv\discovery\builtin.py:152]
  .pkg: 719 D discover PATH[5]=C:\WINDOWS\System32\Wbem [virtualenv\discovery\builtin.py:152]
  .pkg: 721 D discover PATH[6]=C:\WINDOWS\System32\WindowsPowerShell\v1.0 [virtualenv\discovery\builtin.py:152]
  .pkg: 721 D discover PATH[7]=C:\WINDOWS\System32\OpenSSH [virtualenv\discovery\builtin.py:152]
  .pkg: 721 D discover PATH[8]=C:\Program Files\ServiceNow [virtualenv\discovery\builtin.py:152]
  .pkg: 721 D discover PATH[9]=C:\Program Files (x86)\Plantronics\Spokes3G [virtualenv\discovery\builtin.py:152]
  .pkg: 721 D discover PATH[10]=C:\Program Files\PuTTY [virtualenv\discovery\builtin.py:152]
  .pkg: 721 D discover PATH[11]=C:\Program Files\dotnet [virtualenv\discovery\builtin.py:152]
  .pkg: 721 D discover PATH[12]=C:\MT-DS [virtualenv\discovery\builtin.py:152]
  .pkg: 723 D discover PATH[13]=C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL [virtualenv\discovery\builtin.py:152]
  .pkg: 724 D discover PATH[14]=C:\Program Files\Intel\Intel(R) Management Engine Components\DAL [virtualenv\discovery\builtin.py:152]
  .pkg: 725 D discover PATH[15]=C:\Program Files\GitHub CLI [virtualenv\discovery\builtin.py:152]
  .pkg: 725 D discover PATH[16]=C:\Program Files\Git\cmd [virtualenv\discovery\builtin.py:152]
  .pkg: 725 D discover PATH[17]=C:\Program Files\PowerShell\7 [virtualenv\discovery\builtin.py:152]
  .pkg: 728 D discover PATH[18]=C:\Users\<redacted>\.cargo\bin [virtualenv\discovery\builtin.py:152]
  .pkg: 728 D discover PATH[19]=C:\Users\<redacted>\AppData\Local\Programs\Python\Launcher [virtualenv\discovery\builtin.py:152]
  .pkg: 728 D discover PATH[20]=C:\Users\<redacted>\AppData\Local\Microsoft\WindowsApps [virtualenv\discovery\builtin.py:152]
  .pkg: 731 D get interpreter info via cmd: 'C:\Users\<redacted>\AppData\Local\Microsoft\WindowsApps\python.exe' 'C:\path\to\\.venv\Lib\site-packages\virtualenv\discovery\py_info.py' q2fG6xERK5ePmizbgJqnKjWDDqp6FyaH QbJ4CRHth6W167Gy3uWk9LT1Ug0lY6Tf [virtualenv\discovery\cached_py_info.py:117]
  .pkg: 1030 I failed to query C:\Users\<redacted>\AppData\Local\Microsoft\WindowsApps\python.exe with code 9009 err: 'Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.\n' [virtualenv\discovery\cached_py_info.py:35]
  .pkg: 1037 D get interpreter info via cmd: 'C:\Users\<redacted>\AppData\Local\Microsoft\WindowsApps\python3.exe' 'C:\path\to\\.venv\Lib\site-packages\virtualenv\discovery\py_info.py' Vrz4LiHDmryaR4nOMVtDii56mDFbhbDB J1owRm9LjChO8MmlcEosTHlbj4Ms7Kiw [virtualenv\discovery\cached_py_info.py:117]
  .pkg: 1315 I failed to query C:\Users\<redacted>\AppData\Local\Microsoft\WindowsApps\python3.exe with code 9009 err: 'Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Apps > Advanced app settings > App execution aliases.\n' [virtualenv\discovery\cached_py_info.py:35]
  .pkg: 1317 D discover PATH[21]=C:\Users\<redacted>\AppData\Local\JetBrains\Toolbox\scripts [virtualenv\discovery\builtin.py:152]
  .pkg: 1318 D discover PATH[22]=C:\Program Files\Graphviz\bin [virtualenv\discovery\builtin.py:152]
  .pkg: 1318 D discover PATH[23]=C:\Users\<redacted>\AppData\Local\Programs\VSCodium\bin [virtualenv\discovery\builtin.py:152]
  .pkg: 1320 D discover PATH[24]=C:\Users\<redacted>\AppData\Local\Microsoft\WinGet\Links [virtualenv\discovery\builtin.py:152]
  .pkg: 1320 D discover PATH[25]=C:\Users\<redacted>\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-6.0-full_build\bin [virtualenv\discovery\builtin.py:152]
  .pkg: 1321 D discover PATH[26]=C:\Program Files\Git\usr\bin [virtualenv\discovery\builtin.py:152]
  .pkg: 1323 D discover PATH[27]=C:\<redacted>\Apps\protoc-27.2-win64\bin [virtualenv\discovery\builtin.py:152]
  .pkg: 1324 D discover PATH[28]=C:\Users\<redacted>\.local\bin [virtualenv\discovery\builtin.py:152]
  ROOT: 1333 E Internal Error [tox\session\cmd\run\common.py:304]
  Traceback (most recent call last):
    File "C:\path\to\\.venv\Lib\site-packages\tox\session\cmd\run\common.py", line 293, in _queue_and_wait
      env_list = next(envs_to_run_generator, [])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\session\cmd\run\common.py", line 348, in ready_to_run_envs
      order, todo = run_order(state, to_run)
                    ^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\session\cmd\run\common.py", line 368, in run_order
      order = stable_topological_sort(todo)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\util\graph.py", line 46, in stable_topological_sort
      identify_cycle(graph)
    File "C:\path\to\\.venv\Lib\site-packages\tox\util\graph.py", line 71, in identify_cycle
      raise ValueError(msg)
  ValueError: lint
  Exception in thread tox-interrupt:
  Traceback (most recent call last):
    File "C:\Users\<redacted>\AppData\Roaming\uv\python\cpython-3.11.6-windows-x86_64-none\Lib\threading.py", line 1045, in _bootstrap_inner
      self.run()
    File "C:\Users\<redacted>\AppData\Roaming\uv\python\cpython-3.11.6-windows-x86_64-none\Lib\threading.py", line 982, in run
      self._target(*self._args, **self._kwargs)
    File "C:\path\to\\.venv\Lib\site-packages\tox\session\cmd\run\common.py", line 293, in _queue_and_wait
      env_list = next(envs_to_run_generator, [])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\session\cmd\run\common.py", line 348, in ready_to_run_envs
      order, todo = run_order(state, to_run)
                    ^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\session\cmd\run\common.py", line 368, in run_order
      order = stable_topological_sort(todo)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\util\graph.py", line 46, in stable_topological_sort
      identify_cycle(graph)
    File "C:\path\to\\.venv\Lib\site-packages\tox\util\graph.py", line 71, in identify_cycle
      raise ValueError(msg)
  ValueError: lint
  Traceback (most recent call last):
    File "<frozen runpy>", line 198, in _run_module_as_main
    File "<frozen runpy>", line 88, in _run_code
    File "C:\path\to\\.venv\Scripts\tox.exe\__main__.py", line 10, in <module>
    File "C:\path\to\\.venv\Lib\site-packages\tox\run.py", line 20, in run
      result = main(sys.argv[1:] if args is None else args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\run.py", line 46, in main
      return handler(state)
             ^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\session\cmd\legacy.py", line 115, in legacy
      return run_sequential(state)
             ^^^^^^^^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\session\cmd\run\sequential.py", line 25, in run_sequential
      return execute(state, max_workers=1, has_spinner=False, live=True)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\session\cmd\run\common.py", line 203, in execute
      ordered_results: list[ToxEnvRunResult] = [name_to_run[env] for env in to_run_list]
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\path\to\\.venv\Lib\site-packages\tox\session\cmd\run\common.py", line 203, in <listcomp>
      ordered_results: list[ToxEnvRunResult] = [name_to_run[env] for env in to_run_list]
                                                ~~~~~~~~~~~^^^^^
  KeyError: 'lint'
  ```
  
  </details>
  
  ## Minimal example
  
  <!--  If possible, provide a minimal reproducer for the issue. -->
  
  ```console
  [tool.tox]
  env_list = ["lint", "py311", "py312", "py313"]
  
  [tool.tox.env.lint]
  skip_install = true
  commands = [
      ["ruff", "format"],
      ["ruff", "check", "--fix", "--show-fixes"],
      ["pyright"],
  ]
  dependency_groups = ["dev"]
  
  [tool.tox.env_run_base]
  depends = ["lint"]
  package = "wheel"
  commands = [["pytest"]]
  dependency_groups = ["test"]
  ```
  