Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install from cargo error #62

Open
h2lsoft opened this issue Jan 31, 2023 · 2 comments
Open

install from cargo error #62

h2lsoft opened this issue Jan 31, 2023 · 2 comments

Comments

@h2lsoft
Copy link

h2lsoft commented Jan 31, 2023

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
Copy link

hnaderi commented Jul 12, 2023

I'm facing the same problem.

@hnaderi
Copy link

hnaderi commented Jul 12, 2023

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, ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants