phylum-dev / cli

Command line interface for the Phylum API
https://phylum.io
GNU General Public License v3.0
102 stars 10 forks source link

Restore lockfile in phylum parse output #1317

Closed kylewillmon closed 9 months ago

kylewillmon commented 9 months ago

Fix #1316

Note

This patch causes phylum parse to use the same format that is currently used by API. This means using the lockfile key just like CLI v5.9.0 rather than a more broad origin key.

> phylum parse ./requirements.txt
Generating lockfile for manifest "requirements.txt" using Pip…
[
  {
    "name": "PyYAML",
    "version": "6.0.1",
    "type": "pypi",
    "lockfile": "requirements.txt"
  }
]