Add directory change instruction after dbt init (Fixes #9041)#12232
Add directory change instruction after dbt init (Fixes #9041)#12232kalluripradeep wants to merge 4 commits intodbt-labs:mainfrom
Conversation
sriramr98
left a comment
There was a problem hiding this comment.
Thanks for the PR. There's one small fix that needs attention.
Please fix it and rebase with upstream main.
Fixes dbt-labs#9041 - Adds a line instructing users to cd into the newly created project directory
e72b76d to
8e0a0c7
Compare
8e0a0c7 to
4b15f1c
Compare
|
Rebased with upstream main and addressed both review comments — updated the message to show the absolute project path, and removed the stray p.s. line. Let me know if anything else needs attention |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #12232 +/- ##
==========================================
- Coverage 91.45% 91.44% -0.01%
==========================================
Files 203 203
Lines 25471 25472 +1
==========================================
- Hits 23294 23293 -1
- Misses 2177 2179 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
@kalluripradeep You might need to run |
Thank you @sriramr98 , have made the changes can you please have a look |
What?
Adds a line to the
dbt initoutput instructing users to change directories to their newly created project before runningdbt debug.Why?
Users were confused when
dbt debugfailed after runningdbt initbecause they weren't in the project directory. This simple instruction helps prevent that confusion.Fixes #9041
Changes
ProjectCreatedevent message incore/dbt/events/types.pyp.s. change directories to "{project_name}" to use this projectExample Output
After this change, when running
dbt init, users will see:Your new dbt project "my_project" was created!
For more information on how to configure the profiles.yml file,
please consult the dbt documentation here:
https://docs.getdbt.com/docs/configure-your-profile
One more thing:
Need help? Don't hesitate to reach out to us via GitHub issues or on Slack:
https://community.getdbt.com/
Happy modeling!
p.s. change directories to "my_project" to use this project
Testing
dbt initand verifying the new message appearsChecklist