theoremlp / multitool

Companion CLI to rules_multitool
Apache License 2.0
0 stars 1 forks source link

Unable to deserialize lockfile #27

Closed pswaminathan closed 1 month ago

pswaminathan commented 1 month ago
$ RUST_BACKTRACE=1 multitool --lockfile multitool.lock.json update
thread 'main' panicked at src/main.rs:206:41:
Unable to deserialize lockfile: Error("invalid type: string \"https://raw.githubusercontent.com/theoremlp/rules_multitool/main/lockfile.schema.json\", expected struct Binary", line: 2, column: 100)
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: multitool::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
{
  "$schema": "https://raw.githubusercontent.com/theoremlp/rules_multitool/main/lockfile.schema.json",
...

I can provide the rest of the lockfile if needed, but I am not sure think it matters—even when I strip away everything else, it still fails. Looks like the parsing expects there to be only Binary declarations, not the "$schema".

mark-thm commented 1 month ago

Released in 0.3.0.

pswaminathan commented 1 month ago

Thank you!