Add directory change instruction after dbt init (Fixes #9041) #12232
+8
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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