You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8613f25
Browse filesBrowse the repository at this point in the historyBrowse files
fix: a missing mcpp.lock is named by emit sbom and --locked
mcpp::pm::load returns an empty Lockfile when the file does not exist, and
two callers took a successful load to mean the file was there, so the
branches they wrote for a missing lock were never taken.
`mcpp emit sbom` wrote a root-only document, exit 0, without the note its
own comment requires: that document is true of a project with no
dependencies and false of one that was never built. It now asks whether
the file exists before loading it. The note goes to the narration stream,
so standard output stays the document.
`mcpp build --locked` reported every resolved package as "(not in the
lock)" under "this resolution differs from mcpp.lock", naming a file that
is not there. It now gives the refusal that says the lock is missing and
how to record one.
`load` keeps its meaning: the build's own readers want an empty lock from
a project that has none. A lock that exists behaves as before in both
commands, and one that cannot be read is still an error.
Tests: tests/e2e/333 runs `--locked` and `emit sbom` with the lock moved
aside. docs/51 states the note in both languages.
Closes#891
0 commit comments