dataform-co / dataform

Dataform is a framework for managing SQL based data operations in BigQuery
https://cloud.google.com/dataform/docs
Apache License 2.0
848 stars 160 forks source link

`dataform run [project-dir]` does not use [project-dir] as relative path. #509

Closed Ekrekr closed 4 years ago

Ekrekr commented 4 years ago

dataform help specifies syntax dataform run [project-dir].

To replicate issue, from this repo after configuration, run:

$ ./scripts/run run ../example-cli
Dataform encountered an error: /Users/eli/Documents/dataform/dataform/.df-credentials.json does not exist!

(example-cli is not in the path).

This happens because when the hardcoded CREDENTIALS_FILENAME defined in api/commands is used, the project-dir is not prepended.

Ekrekr commented 4 years ago

Same for dataform test