V8034 package_missing
sakura.lock lists a package whose files are not there (RFC 0003 §3.2, experimental): a path dependency's directory has no sakura.toml, or a registry or git package is not in the vendor directory or the package cache, which this release does not fill yet.
An error from the package phase. sakura explain V8034 prints this explanation offline.
sakura.lock lists a package whose files are not there (RFC 0003 §3.2, experimental): a path
dependency's directory has no sakura.toml, or a registry or git package is not in the vendor
directory or the package cache, which this release does not fill yet. Nothing is fetched by
check, build, run or test. Restore the directory, correct the path in sakura.toml, or
run sakura sync once it exists.
Wrong program
compiler/tests/ui/V8034_package_missing/, which the compiler's ui suite runs through sakura check:
main.sak:
// RFC 0003 §3.2: a locked `path` package whose directory has no sakura.toml is `V8034` at the
// lock entry; nothing is resolved in its place.
pub fn main() -> Unit ! {Console} { Console.print("hi") }sakura.toml:
[package]
name = "billing"
[dependencies]
util = { path = "util" }sakura check --json reports this record (pretty-printed; $DIR is the fixture's directory):
{
"schema_version": "1.0",
"kind": "diagnostic",
"id": "d:3c88c84eb5c66087",
"code": "V8034",
"severity": "error",
"phase": "package",
"message": "package `util` is locked at `util`, which has no sakura.toml; restore the directory or correct its `path`, then run `sakura sync`",
"snapshot": "sha256:$SNAPSHOT",
"symbol_id": null,
"spans": [
{
"uri": "file://$DIR/V8034_package_missing/sakura.lock",
"content_hash": "sha256:d705c0754f6be4e1ea5731b046025ebabc8646199c3c064b36fb761ce5b64e60",
"start_byte": 87,
"end_byte": 198,
"role": "primary"
}
],
"related_ids": [],
"expected": null,
"actual": null,
"obligation": null,
"counterexample": null,
"explanation_uri": "sakura://explain/V8034",
"fixes": []
}Fixed program
No fixed program is checked in for this code yet; the explanation above describes the repair.
Last updated