Open jefft opened 1 year ago
I have installed pq via cargo install prql-query. Running pq --help works, but any other command fails with an odd semver version number string error:
pq
cargo install prql-query
pq --help
semver version number string
$ pq "from a | select b" Error: Error { span: Some(Span { start: 13, end: 15 }), reason: Expected { who: None, expected: "semver version number string", found: "1" }, help: None }
If I checkout from git and run 'cargo build -r' it works, and cargo install --path . breaks:
cargo install --path .
jturner@jturner-desktop:~/src/github.com/PRQL/prql-query$ cargo build -r Finished release [optimized] target(s) in 0.14s jturner@jturner-desktop:~/src/github.com/PRQL/prql-query$ ./target/release/pq 'from a | select b' SELECT b FROM a jturner@jturner-desktop:~/src/github.com/PRQL/prql-query$ cargo install --path . Installing prql-query v0.0.14 (/home/jturner/src/github.com/PRQL/prql-query) Updating crates.io index Finished release [optimized] target(s) in 4.17s Replacing /home/jturner/.cargo/bin/pq Replaced package `prql-query v0.0.14 (/home/jturner/src/github.com/PRQL/prql-query)` with `prql-query v0.0.14 (/home/jturner/src/github.com/PRQL/prql-query)` (executable `pq`) jturner@jturner-desktop:~/src/github.com/PRQL/prql-query$ ./target/release/pq 'from a' Error: Error { span: Some(Span { start: 13, end: 15 }), reason: Expected { who: None, expected: "semver version number string", found: "1" }, help: None } jturner@jturner-desktop:~/src/github.com/PRQL/prql-query$ cargo build -r Finished release [optimized] target(s) in 0.12s jturner@jturner-desktop:~/src/github.com/PRQL/prql-query$ ./target/release/pq 'from a' SELECT a.* FROM a jturner@jturner-desktop:~/src/github.com/PRQL/prql-query$
Just FYI.
Anyway, very promising project!
Thanks for the report. Sorry I've been away on vacation. I'll pick this up next week.
I have installed
pq
viacargo install prql-query
. Runningpq --help
works, but any other command fails with an oddsemver version number string
error:If I checkout from git and run 'cargo build -r' it works, and
cargo install --path .
breaks:Just FYI.
Anyway, very promising project!