mgdm / htmlq

Like jq, but for HTML.
MIT License
7.09k stars 111 forks source link

install from cargo error #62

Open h2lsoft opened 1 year ago

h2lsoft commented 1 year ago

cargo install htmlq Updating crates.io index Installing htmlq v0.4.0 error: failed to compile htmlq v0.4.0, intermediate artifacts can be found at /tmp/cargo-installcw2l6s

Caused by: failed to download once_cell v1.17.0

Caused by: unable to get packages from source

Caused by: failed to parse manifest at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.17.0/Cargo.toml

Caused by: failed to parse the edition key

Caused by: supported edition values are 2015 or 2018, but 2021 is unknown

Thanks

hnaderi commented 1 year ago

I'm facing the same problem.

hnaderi commented 1 year ago

Just for future reference for people who might encounter this problem, This is due to old cargo version. Upgrading the cargo solves the problem, if you can't (e.g. old OS that doesn't support new tooling) you better try another option (run in docker, upgrade your OS, ...)