Cannot add other yaml files that are not source file in `queries` directory
Closed this issue · 0 comments
zeyarpaing commented
Since source file contains credentials, I've added to .gitignore and want to provide an example file in the same directory for fellow teammates. Currently it uses example yml/yaml file as source file and resulting in authorization issues with DB provider. Spent a lot of time for debugging this and found this part of code in source_manager
package.
Steps To Reproduce
- Created a
source.example.yml
for example source file with dummy values - Run
latitude run
orlatitude dev
- Got unauthenticated error (using bigquery connector)
Environment
- Node version (
v20.12.2
): - npm version (
10.5.0
): - Latitude CLI version (
1.10.6
): - Latitude project version (
2.0.5
): - OS: macOS 15.0.1 (24A348)
- Browser: Chromium
- Database: BigQuery
Expected Behavior
Should search and parse source.yml
or source.yaml
as source file.
Actual Behaviour
Searches for any files with yml
or yaml
extensions and using the first one that is found.