Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

0.0.14 binary broken? #23

Open
jefft opened this issue Dec 30, 2022 · 1 comment
Open

0.0.14 binary broken? #23

jefft opened this issue Dec 30, 2022 · 1 comment

Comments

@jefft
Copy link

jefft commented Dec 30, 2022

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

snth commented Jan 6, 2023

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

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

No branches or pull requests

2 participants