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

0.0.14 binary broken? #23

Description

@jefft

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions