Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
project.get_default_index()
populate a default name
Otherwise using pipenv with a Pipfile the defaults a source without a name causes a KeyError like: ``` Traceback (most recent call last): File "/usr/local/.pyenv/versions/3.11.5/lib/python3.11/site-packages/pipenv/resolver.py", line 675, in <module> main() File "/usr/local/.pyenv/versions/3.11.5/lib/python3.11/site-packages/pipenv/resolver.py", line 661, in main _main( File "/usr/local/.pyenv/versions/3.11.5/lib/python3.11/site-packages/pipenv/resolver.py", line 645, in _main resolve_packages( File "/usr/local/.pyenv/versions/3.11.5/lib/python3.11/site-packages/pipenv/resolver.py", line 612, in resolve_packages results, resolver = resolve( ^^^^^^^^ File "/usr/local/.pyenv/versions/3.11.5/lib/python3.11/site-packages/pipenv/resolver.py", line 592, in resolve return resolve_deps( ^^^^^^^^^^^^^ File "/usr/local/.pyenv/versions/3.11.5/lib/python3.11/site-packages/pipenv/utils/resolver.py", line 910, in resolve_deps results, hashes, internal_resolver = actually_resolve_deps( ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/.pyenv/versions/3.11.5/lib/python3.11/site-packages/pipenv/utils/resolver.py", line 672, in actually_resolve_deps resolver = Resolver.create( ^^^^^^^^^^^^^^^^ File "/usr/local/.pyenv/versions/3.11.5/lib/python3.11/site-packages/pipenv/utils/resolver.py", line 222, in create index_lookup[package_name] = project.get_default_index()["name"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ KeyError: 'name' ```
- Loading branch information