Skip to content

Commit c6441f8

Browse files
authored
Merge pull request #5512 from pypa/missing-index
Remove newer code branch that prevents new sources from being added to lockfile.
2 parents 8cd6e01 + 183c822 commit c6441f8

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

news/5508.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix regression: pipenv does not sync indexes to lockfile.

pipenv/project.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -759,13 +759,7 @@ def get_or_create_lockfile(self, categories, from_pipfile=False):
759759
def get_lockfile_meta(self):
760760
from .vendor.plette.lockfiles import PIPFILE_SPEC_CURRENT
761761

762-
if self.lockfile_exists:
763-
sources = (
764-
self.load_lockfile(expand_env_vars=False)
765-
.get("_meta", {})
766-
.get("sources", [])
767-
)
768-
elif "source" in self.parsed_pipfile:
762+
if "source" in self.parsed_pipfile:
769763
sources = [dict(source) for source in self.parsed_pipfile["source"]]
770764
else:
771765
sources = self.pipfile_sources(expand_vars=False)

0 commit comments

Comments
 (0)