PaulJuliusMartinez / jless

jless is a command-line JSON viewer designed for reading, exploring, and searching through JSON data.
https://jless.io
MIT License
4.61k stars 87 forks source link

clap dependency not working #142

Closed cheese1 closed 1 month ago

cheese1 commented 7 months ago
[cheese@hp test]$ git clone https://github.com/PaulJuliusMartinez/jless
Cloning into 'jless'...
remote: Enumerating objects: 1553, done.
remote: Counting objects: 100% (580/580), done.
remote: Compressing objects: 100% (139/139), done.
remote: Total 1553 (delta 485), reused 498 (delta 438), pack-reused 973
Receiving objects: 100% (1553/1553), 2.68 MiB | 2.44 MiB/s, done.
Resolving deltas: 100% (1095/1095), done.
[cheese@hp test]$ cd jless
[cheese@hp jless (main)]$ cargo vendor
    Updating crates.io index
error: failed to sync

Caused by:
  failed to load pkg lockfile

Caused by:
  failed to select a version for the requirement `clap = "=4.0.26"`
  candidate versions found which didn't match: 3.2.25, 3.2.24, 3.2.23, ...
  location searched: crates.io index
  required by package `jless v0.9.0 (/tmp/test/jless)`
PaulJuliusMartinez commented 7 months ago

A search online for "cargo failed to select a version for the requirement" suggests that it may be due to a corrupted cache and suggest deleting ~/.cargo/registry and trying again.

That version of clap exists, and I am able to run cargo vendor without any issues.

PaulJuliusMartinez commented 1 month ago

Closing due to lack of response and inactivity.