What are metadata used for ? #7445
-
|
Hey everyone, I am not sure what is the purpose of this list. Does anybody has link to a documentation on this part ? or could explain it ? Especially what would happen if this list was empty for all packages (cf issues with old poetry versions : #6045) Thanks a lot 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
In older versions of Poetry, we kept a collection of filenames and hashes. In newer versions of Poetry (lock file format 2.0), we instead keep track of files under each package entry. In all cases these hashes are used to verify the packages retrieved from the repository match the expected values from lock time. The other metadata fields are straightfoward -- representing the lock file format version, the Python constraint from pyproject.toml, and a hash of attributes that are known to require a re-lock. |
Beta Was this translation helpful? Give feedback.
In older versions of Poetry, we kept a collection of filenames and hashes. In newer versions of Poetry (lock file format 2.0), we instead keep track of files under each package entry. In all cases these hashes are used to verify the packages retrieved from the repository match the expected values from lock time.
The other metadata fields are straightfoward -- representing the lock file format version, the Python constraint from pyproject.toml, and a hash of attributes that are known to require a re-lock.