Closed derekfrye closed 4 weeks ago
I'm on LInux and getting the same error installing via either cargo install jaq
or cargo install --git https://github.com/01mf02/jaq
, but the line reference I see is jaq/src/main.rs:498
not 476.
Color::Unset
is indeed invalid, according to the Color
enum:
enum Color {
Always,
Auto,
Never,
}
How was this even able to publish to crates.io?
EDIT: Wrong Color
... I missed use ariadne::{Color, Fmt, Label, Report, ReportKind};
on line 490
ariadne::Color
is really yansi::Color
...
jaq depends on ariadne 0.4.0 (released 2024-01-01; 0.4.1 was just released 2024-04-25 but last commit to jaq was 2024-04-19)...
But this is weird: ariadne 0.4.0 depends on yansi 0.5.0 (released 2018-11-30; but latest is 1.0.1 on 2024-03-13)... so... ?
Also: yansi 0.5.0 Color::Unset
is valid (?)
Side note relating to my previous comment: jaq/src/main.rs has a different Color
enum, hence the use ariadne::{Color, Fmt, Label, Report, ReportKind};
on line 490.
yansi::Color::Unset
was removed on 2023-07-06: https://github.com/SergioBenitez/yansi/commit/b186eb5bfb9023969e78a958a7589d3860058ae8#diff-12d1cf56d5d03c679a5f8f1c48cfe969a5c4276a1bee8647cc548de13f18e465L9
@qtfkwk when you do cargo install --git https://github.com/aretrosen/jaq.git
, the Cargo.lock
file is not used. See https://github.com/rust-lang/cargo/issues/7169. Use cargo install --git https://github.com/aretrosen/jaq.git --locked
.
This issue is due to a release of the ariadne
package that does not respect semantic versioning.
In the meantime, you can use cargo install --locked jaq
.
I just tried to compile the latest version with
cargo
, and maybe I'm doing something wrong but I can only get v1.2.0 to build. Here's what I tried.Note, if i either
cargo install jaq --version "1.2.0"
or I clone from git (1699a7d1fc7ede
as of now) I can build either of those. So IDK..? I am pretty new to rust so maybe I'm missing a step?I get the same thing on my linux machine.