Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

expand ~ in dbt paths #599

Merged
merged 2 commits into from
Jun 8, 2023
Merged

Conversation

vvkh
Copy link
Contributor

@vvkh vvkh commented Jun 1, 2023

Support paths like ~/.dbt as --dbt-profiles-dir and --dbt-project-dir parameters.

@vvkh vvkh requested review from dlawin and pik94 June 1, 2023 16:23
@dlawin
Copy link
Contributor

dlawin commented Jun 1, 2023

@vvkh is this not working for you? Should already work:

➜  dbt-beers git:(master) ✗ unset DBT_PROFILES_DIR 
➜  dbt-beers git:(master) ✗ data-diff --dbt --dbt-profiles-dir ~/.dbt --debug
[13:29:48] INFO - Parsing file dbt_project.yml
[13:29:48] INFO - Parsing file target/manifest.json
[13:29:48] INFO - Parsing file target/run_results.json
Running with data-diff=0.7.7

[13:29:48] INFO - Parsing file /Users/dan/.dbt/profiles.yml

@dlawin
Copy link
Contributor

dlawin commented Jun 1, 2023

@vvkh is this not working for you? Should already work:

➜  dbt-beers git:(master) ✗ unset DBT_PROFILES_DIR 
➜  dbt-beers git:(master) ✗ data-diff --dbt --dbt-profiles-dir ~/.dbt --debug
[13:29:48] INFO - Parsing file dbt_project.yml
[13:29:48] INFO - Parsing file target/manifest.json
[13:29:48] INFO - Parsing file target/run_results.json
Running with data-diff=0.7.7

[13:29:48] INFO - Parsing file /Users/dan/.dbt/profiles.yml

Actually I think ohmyzsh is automatically converting my tildes

@dlawin dlawin merged commit b39aa17 into master Jun 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants