-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CT-61] [Bug] interactive dbt init allows illegal project names #4490
Comments
Thanks for the bug report @joellabes! We'll get this sorted ASAP. |
@joellabes I took a stab at this! PR is ready for review p.s: first time dbt contributor 🤓 |
That's awesome @amirkdv! Thanks for the contribution. I'll leave the Core team to handle the review 😁 |
@ChenyuLInx let's remember to backport this as well |
The tutorial needs to be updated to use a valid project name: https://docs.getdbt.com/tutorial/create-a-project-dbt-cli |
@bendiktv2 Good call! Could I ask you to open a quick issue or PR at https://github.com/dbt-labs/docs.getdbt.com? If you scroll to the bottom of that page, there's also an "Edit this page" link that will open the appropriate file in GitHub's web editor. |
Sorry, PR is in other repo. Here is the correct link: dbt-labs/docs.getdbt.com#1155 |
Thank you!! :) |
Is there an existing issue for this?
Current Behavior
I just set up a sandbox project for myself using the new interactive dbt-init. When it asked what I wanted to call it, I chose
joel-sandbox
.When I ran
dbt debug
, it failed because'joel-sandbox' does not match '^[^\\d\\W]\\w*$'
.Expected Behavior
dbt init
should at minimum include the "lowercase and underscores only" rule, and really should also validate that the input conforms.Steps To Reproduce
No response
Relevant log output
Environment
What database are you using dbt with?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: