Skip to content
docs
Arxo ↗

LPK-E0404 — version change via add

For LLMs5 sections

Adding pins a new dependency; moving an existing pin belongs to the update command, which also moves the pin subtree and replays the saved calculations. Asking add to re-pin an already pinned name is therefore refused, with the exact update invocation spelled out. Nothing is created or changed by the refusal.

Running the named update command is the whole fix — or keeping the pinned version and dropping the request.

pkgtest
{"files": {"law.toml": "[package]\nname = \"demo.mini\"\nversion = \"0.1.0\"\nlanguage = \"0.2\"\nnamespace = \"urn:law:demo:mini\"\n\n[dependencies]\nfoo = \"1.0.0\"\n"}, "cmd": ["add", "foo@2.0.0", "--project", "."], "expect": "LPK-E0404"}
pkgtest
{"files": {}, "cmd": ["init", ".", "--name", "demo.diag"]}

The tool reports this in its own wording:

Output
law: REFUSAL LPK-E0404: foo: pinned 1.0.0, requested 2.0.0

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.