PRQL / prql-query

Query and transform data with PRQL
Apache License 2.0
126 stars 7 forks source link

0.0.14 binary broken? #23

Open jefft opened 1 year ago

jefft commented 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 "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:

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!

snth commented 1 year ago

Thanks for the report. Sorry I've been away on vacation. I'll pick this up next week.