Skip to content

Commit

Permalink
Merge pull request #5512 from pypa/missing-index
Browse files Browse the repository at this point in the history
Remove newer code branch that prevents new sources from being added to lockfile.
  • Loading branch information
oz123 authored Nov 30, 2022
2 parents 8cd6e01 + 183c822 commit c6441f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions news/5508.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix regression: pipenv does not sync indexes to lockfile.
8 changes: 1 addition & 7 deletions pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,13 +759,7 @@ def get_or_create_lockfile(self, categories, from_pipfile=False):
def get_lockfile_meta(self):
from .vendor.plette.lockfiles import PIPFILE_SPEC_CURRENT

if self.lockfile_exists:
sources = (
self.load_lockfile(expand_env_vars=False)
.get("_meta", {})
.get("sources", [])
)
elif "source" in self.parsed_pipfile:
if "source" in self.parsed_pipfile:
sources = [dict(source) for source in self.parsed_pipfile["source"]]
else:
sources = self.pipfile_sources(expand_vars=False)
Expand Down

0 comments on commit c6441f8

Please sign in to comment.