tokay-lang / tokay

Tokay is a programming language designed for ad-hoc parsing, inspired by awk.
https://tokay.dev
MIT License
236 stars 7 forks source link

`cargo install tokay` fails with Rust toolchain >= 1.68 #106

Closed phorward closed 1 year ago

phorward commented 1 year ago

Using the current stable Rust toolchain 1.68, Tokay cannot be installed using cargo install tokay anymore.

Here's what happens:

$ cargo install -v tokay
    Updating crates.io index
  Installing tokay v0.6.2
error: failed to compile `tokay v0.6.2`, intermediate artifacts can be found at `/tmp/cargo-installVvDECK`

Caused by:
  There are multiple `tokay` packages in your project, and the specification `tokay` is ambiguous.
  Please re-run this command with `-p <spec>` where `<spec>` is one of the following:
    tokay@0.4.0
    tokay@0.6.2

I've opened #11999 on this, as I don't find a solution for it right now.

Workaround: cargo +1.67 install tokay and previously install the 1.67 toolchain with rustup toolchain install 1.67

phorward commented 1 year ago

Workaround: cargo +1.67 install tokay and previously install the 1.67 toolchain with rustup toolchain install 1.67

The problem still exists with Rust 1.70, but it's resolved in nightly. cargo +nightly install tokay works as well.

phorward commented 1 year ago

The problem seems to be resolved by cargo 1.71.0 stable.