From d24c0a6882ce4248ae8f18cf4f58f7f6f95b4e0e Mon Sep 17 00:00:00 2001 From: Matt Davis Date: Sun, 9 Oct 2022 20:49:46 -0400 Subject: [PATCH] Possible fix for the meta data not getting updated in the lock phase. --- pipenv/core.py | 1 + pipenv/project.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pipenv/core.py b/pipenv/core.py index 48e69903..e4a84db9 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1138,6 +1138,7 @@ def do_lock( overwrite_with_default(lockfile.get("default", {}), lockfile[category]) ) if write: + lockfile.update({"_meta": project.get_lockfile_meta()}) project.write_lockfile(lockfile) click.echo( "{}".format( diff --git a/pipenv/project.py b/pipenv/project.py index 1a77a0db..3189f106 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -582,8 +582,6 @@ class Project: ) lockfile = lockfile._data - # with open(self.pipfile_location) as pf: - # lockfile = plette.Lockfile.with_meta_from(plette.Pipfile.load(pf)) if categories is None: categories = self.get_package_categories(for_lockfile=True) for category in categories: