cmoog / traderjoes

Price tracking program and website for Trader Joe's, updated daily.
https://traderjoesprices.com
MIT License
201 stars 15 forks source link

Embed query file on compile to fix Nix derivation #1

Closed kylecarbs closed 7 months ago

kylecarbs commented 7 months ago

The Nix derivation would previously fail:

$ nix run github:cmoog/traderjoes
running
traderjoes: ./query.graphql: openFile: does not exist (No such file or directory)

By embedding the query, it works:

$ nix run github:kylecarbs/traderjoes/fixquerypath
running
requesting page: 1
requesting page: 2
requesting page: 3
...
stirby commented 7 months ago

Thank you @kylecarbs!!!