Message codes: Lock files¶
See also: Message codes (the index of every code) and Messages and codes (the line grammar, what a code guarantees and when to trust one).
Trust a code only when the line is one of the lines below, a value in place of
each <name>, after at most one prefix: the index lists the prefixes and
message-codes-values.md the values.
Codes¶
| Code | Level | Means | Since |
|---|---|---|---|
lock-entry-conflict |
WARNING | One lock file states one package at several versions; or (no FILE= on the line) the locked dependencies a document is assembled from do, as when two lock formats are layered by hand. Often legitimate: pylock.toml may hold one entry per marker, uv.lock one per Python version, and Pitloom evaluates no marker. Two spellings of one version (1.0 and 1.0.0) are one version and say nothing. | 0.25.0 |
lock-entry-malformed |
WARNING | One entry of a lock file, one dependency reference in it or one line of requirements.txt has the wrong shape (no name, no version, a key of the wrong type, a marker that does not parse, a line that is not PEP 508), or names what the lock does not hold (a package missing from its table, an extra the package does not have). Most often a stale or hand-edited lock. | 0.25.0 |
lock-entry-unusable |
WARNING | A well-formed lock entry or requirements.txt line has no exact registry version to record: a VCS, path, URL or editable source, a range, a version per marker (Pitloom evaluates no marker), or a pip option. A requirements.txt is read as a lock only when every line is one exact pin. | 0.25.0 |
lock-file-conflict |
WARNING | Two lock files hold the project's resolved dependencies: a poetry.lock read with pyproject.toml, and a lock earlier in the fixed order (pylock.toml, uv.lock, poetry.lock, pdm.lock, Pipfile.lock, then a requirements.txt that pins every line) found after it. Two locks where the first one tried applies say nothing. | 0.25.0 |
lock-file-malformed |
WARNING | A lock file was read and decoded, but does not parse, or lacks the shape its format has at the top level or in the project's own entry: a key missing, or of the wrong type. Most often a hand edit, a merge of two versions, or a lock written by a tool's version Pitloom does not know. | 0.25.0 |
lock-file-unusable |
WARNING | A well-formed uv.lock holds no entry Pitloom can tell is this project's own: no editable or virtual entry, or a workspace's entries of which none has the project's name, or several and no name to choose by. Taking another member's entry would credit its dependencies to this project. | 0.25.0 |
lock-file-wrong-format |
WARNING | A file named as a lock is not a lock of its format (no format marker, or one of the wrong type), or states a format version Pitloom does not read: not a major.minor version, or another major version. A newer minor version of pylock.toml is read anyway, since PEP 751 minor versions only add keys; the keys it adds are not read. | 0.25.0 |
lock-entry-conflict¶
- Level: WARNING.
- Means: One lock file states one package at several versions; or (no FILE= on the line) the locked dependencies a document is assembled from do, as when two lock formats are layered by hand. Often legitimate: pylock.toml may hold one entry per marker, uv.lock one per Python version, and Pitloom evaluates no marker. Two spellings of one version (1.0 and 1.0.0) are one version and say nothing.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Said by loom project, loom generate on a project directory, loom enrich --project-dir, the library's generate_project_sbom and enrich_model, and a Git URL's checkout (never the build hook, loom wheel, loom env or an sdist). Recorded no pin for the package (the line lists the versions dropped); in requirements.txt, read no pins from the file and tried the next lock. A uv.lock line about a package is said once per package and line in one run. The SBOM is written.
- Tell the user: which package has no pin in the SBOM and the versions the line drops. When the versions are per environment (markers, Python versions), nothing is to fix. Otherwise the lock is stale or hand-edited; they regenerate it with its tool. Do not regenerate or edit the lock for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FILE=<file> PACKAGE=<package>: pinned to several versions; skipped, dropped <dropped> [lock-entry-conflict]
WARNING: FILE=<file> PACKAGE=<package>: pinned to several versions; no pins read from it, dropped <dropped> [lock-entry-conflict]
WARNING: PACKAGE=<package>: pinned to several versions in the locked dependencies; skipped, dropped <dropped> [lock-entry-conflict]
lock-entry-malformed¶
- Level: WARNING.
- Means: One entry of a lock file, one dependency reference in it or one line of requirements.txt has the wrong shape (no name, no version, a key of the wrong type, a marker that does not parse, a line that is not PEP 508), or names what the lock does not hold (a package missing from its table, an extra the package does not have). Most often a stale or hand-edited lock.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Said by loom project, loom generate on a project directory, loom enrich --project-dir, the library's generate_project_sbom and enrich_model, and a Git URL's checkout (never the build hook, loom wheel, loom env or an sdist). What the line's last clause says: 'skipped' left the entry's pin out; 'pin kept' recorded the entry's pin but did not follow its dependencies, or the extras a reference requests, so pins reached only through them are missing; a pylock.toml marker that does not parse keeps its entry, as if the marker held; a requirements.txt line reads no pins from the file, and the next lock is tried. The rest of the lock is read. A uv.lock line about a package is said once per package and line in one run. The SBOM is written.
- Tell the user: which lock entry is malformed and what is wrong, as the line says, and what the SBOM lacks for it: the entry's pin ('skipped'), or the pins reached only through what was not followed ('pin kept'); a marker read as true may list a package the project's environments do not install. They regenerate the lock with its tool ('uv lock', 'poetry lock', 'pdm lock', 'pipenv lock', or pip-compile for requirements.txt) and run again. Do not regenerate or edit the lock for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FILE=<file> LINE=<line>: not a PEP 508 requirement: <why>; no pins read from it [lock-entry-malformed]
WARNING: FILE=<file>: an entry of <lock-key> is <type>, expected a table; skipped [lock-entry-malformed]
WARNING: FILE=<file>: an entry of <lock-key> has name <lock-value>, not a valid package name; skipped [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: entry is <type>, expected a table; skipped [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: version missing or not a version; skipped [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: version <lock-value> is not a version specifier; skipped [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: <lock-key> is <type>, expected a list; skipped [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: <lock-key> is <type>, expected a list; its dependencies not followed, pin kept [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: <lock-key> is <type>, expected a table; requested extras not followed, pin kept [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: <lock-key> is <type>, expected a string; skipped [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: <lock-key> is <type>, expected a string or a list; requested extras not followed, pin kept [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: <lock-key> holds a value that is not a string; that value not followed, pin kept [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: <lock-key> of extra <extra> is <type>, expected a list; extra not followed, pin kept [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: referenced but not in the lock's package table; skipped [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: extra <extra> requested but not in its <lock-key>; extra not followed, pin kept [lock-entry-malformed]
WARNING: FILE=<file> PACKAGE=<package>: marker <lock-value> does not parse: <failure>; kept, its marker read as true [lock-entry-malformed]
lock-entry-unusable¶
- Level: WARNING.
- Means: A well-formed lock entry or requirements.txt line has no exact registry version to record: a VCS, path, URL or editable source, a range, a version per marker (Pitloom evaluates no marker), or a pip option. A requirements.txt is read as a lock only when every line is one exact pin.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Said by loom project, loom generate on a project directory, loom enrich --project-dir, the library's generate_project_sbom and enrich_model, and a Git URL's checkout (never the build hook, loom wheel, loom env or an sdist). Skipped the entry and read the rest of the lock; for a requirements.txt line, read no pins from the file and tried the next lock. The direct dependency itself is still listed from its declaration. The SBOM is written.
- Tell the user: which entry has no pin in the SBOM and why, as the line says. Nothing in a lock needs fixing: a source that is not a registry has no version to pin. A requirements.txt meant as a lock pins every line to one exact version (pip-compile writes one; --generate-hashes output and -r includes are not read). Do not edit the file for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FILE=<file> LINE=<line>: pip option <lock-value>, not a pin; no pins read from it [lock-entry-unusable]
WARNING: FILE=<file> LINE=<line>: <package> is a direct reference, not a pin; no pins read from it [lock-entry-unusable]
WARNING: FILE=<file> LINE=<line>: <package> is not one exact version; no pins read from it [lock-entry-unusable]
WARNING: FILE=<file> PACKAGE=<package>: a <source-kind> source, not a registry version; skipped [lock-entry-unusable]
WARNING: FILE=<file> PACKAGE=<package>: its reference states a version per marker; skipped [lock-entry-unusable]
WARNING: FILE=<file> PACKAGE=<package>: version <lock-value> is not one exact version; skipped [lock-entry-unusable]
lock-file-conflict¶
- Level: WARNING.
- Means: Two lock files hold the project's resolved dependencies: a poetry.lock read with pyproject.toml, and a lock earlier in the fixed order (pylock.toml, uv.lock, poetry.lock, pdm.lock, Pipfile.lock, then a requirements.txt that pins every line) found after it. Two locks where the first one tried applies say nothing.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Said by loom project, loom generate on a project directory, loom enrich --project-dir, the library's generate_project_sbom and enrich_model, and a Git URL's checkout (never the build hook, loom wheel, loom env or an sdist). Kept the pins of the lock earlier in the order; the other lock's pins are not recorded, and the provenance notes which lock it supersedes. The SBOM is written.
- Tell the user: which lock the SBOM states and which is not recorded, as the line names them: the SBOM states the kept lock's pins; the dropped lock's pins are not recorded. If both locks are meant, one is stale; they remove it or regenerate both. Do not delete or regenerate a lock for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: two lock files hold resolved dependencies; kept <kept>, dropped <dropped> [lock-file-conflict]
lock-file-malformed¶
- Level: WARNING.
- Means: A lock file was read and decoded, but does not parse, or lacks the shape its format has at the top level or in the project's own entry: a key missing, or of the wrong type. Most often a hand edit, a merge of two versions, or a lock written by a tool's version Pitloom does not know.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Said by loom project, loom generate on a project directory, loom enrich --project-dir, the library's generate_project_sbom and enrich_model, and a Git URL's checkout (never the build hook, loom wheel, loom env or an sdist). Read no pins from the lock and tried the next lock in the order; with none, the SBOM lists the declared dependencies without lock pins. A pylock.toml whose default-groups is malformed is read with no default group. The SBOM is written.
- Tell the user: which lock file is malformed and what is wrong, as the line says, and that its pins are not in the SBOM. They regenerate it with its tool ('uv lock', 'poetry lock', 'pdm lock', 'pipenv lock') and run again; Pitloom tries locks in the order pylock.toml, uv.lock, poetry.lock, pdm.lock, Pipfile.lock, then a requirements.txt that pins every line. Do not regenerate or edit the lock for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FILE=<file>: top-level value is <type>, expected an object; no pins read from it [lock-file-malformed]
WARNING: FILE=<file>: does not parse: <failure>; no pins read from it [lock-file-malformed]
WARNING: FILE=<file>: top-level <lock-key> missing; no pins read from it [lock-file-malformed]
WARNING: FILE=<file>: top-level <lock-key> is <type>, expected a list; no pins read from it [lock-file-malformed]
WARNING: FILE=<file>: top-level <lock-key> is <type>, expected a table; no pins read from it [lock-file-malformed]
WARNING: FILE=<file>: top-level <lock-key> is <type>, expected a non-empty string; no pins read from it [lock-file-malformed]
WARNING: FILE=<file>: top-level <lock-key> is <type>, expected a list of strings; read as empty [lock-file-malformed]
WARNING: FILE=<file>: the project's own entry: <lock-key> is <type>, expected a list; no pins read from it [lock-file-malformed]
lock-file-unusable¶
- Level: WARNING.
- Means: A well-formed uv.lock holds no entry Pitloom can tell is this project's own: no editable or virtual entry, or a workspace's entries of which none has the project's name, or several and no name to choose by. Taking another member's entry would credit its dependencies to this project.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Said by loom project, loom generate on a project directory, loom enrich --project-dir, the library's generate_project_sbom and enrich_model, and a Git URL's checkout (never the build hook, loom wheel, loom env or an sdist). Read no pins from the lock and tried the next lock in the order. The SBOM is written.
- Tell the user: that the lock holds no entry for this project, as the line says. In a workspace they run Pitloom on the member's own directory, or give the project a name in pyproject.toml that the lock holds; a lock from before the project was renamed is regenerated with 'uv lock'. Do not edit the project or the lock for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FILE=<file>: no entry for the project (no editable or virtual source); no pins read from it [lock-file-unusable]
WARNING: FILE=<file>: workspace entries: <number>, none named <package>; no pins read from it [lock-file-unusable]
WARNING: FILE=<file>: workspace entries: <number>, no project name to choose one; no pins read from it [lock-file-unusable]
lock-file-wrong-format¶
- Level: WARNING.
- Means: A file named as a lock is not a lock of its format (no format marker, or one of the wrong type), or states a format version Pitloom does not read: not a major.minor version, or another major version. A newer minor version of pylock.toml is read anyway, since PEP 751 minor versions only add keys; the keys it adds are not read.
- SBOM effect: thinner: the SBOM says less than reading the input would.
- Pitloom did: Said by loom project, loom generate on a project directory, loom enrich --project-dir, the library's generate_project_sbom and enrich_model, and a Git URL's checkout (never the build hook, loom wheel, loom env or an sdist). Read no pins from the lock and tried the next lock in the order; a newer minor version is read, its new keys left out. The SBOM is written.
- Tell the user: which lock file cannot be read and the version or marker the line names; what helps depends on it. No marker: the file is not a lock of that format (another tool's file of the same name, or a hand edit); they regenerate it with its tool. Another major version: the lock comes from a tool newer than Pitloom reads; a newer Pitloom may read it. A newer minor version: read, nothing to fix; a newer Pitloom reads its new keys. Not a major.minor version: most often a hand edit; they regenerate it. Do not regenerate the lock or upgrade anything for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: FILE=<file>: format marker <lock-key> missing or of the wrong type; no pins read from it [lock-file-wrong-format]
WARNING: FILE=<file>: <lock-key> <lock-value> is not a major.minor version; no pins read from it [lock-file-wrong-format]
WARNING: FILE=<file>: <lock-key> <lock-value> is a major version Pitloom does not read (it reads <number>); no pins read from it [lock-file-wrong-format]
WARNING: FILE=<file>: <lock-key> <lock-value> is newer than the version Pitloom reads; read; newer keys not read [lock-file-wrong-format]