-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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-1853] [Bug] When a dependency package is missing the dbt_project.yml, dbt deps in the main project fails with a non-descript error #6663
Comments
Thanks for opening @Mathyoub ! Initial assessmentAfter an initial reading, it doesn't look like dbt is behaving erroneously, so this actually doesn't feel like a bug to me. However, I can see how the error message might not have enough specificity in some cases. e.g., it might not be clear to the end user that one of the packages listed within Is there a simple solution?Unfortunately, I don't see a simple way of just updating the error message to say something like "no dbt_project.yml found for package XYZ". This is because of a few things:
Options moving forward
Current error message:
Proposed error message:
Can you think of any better ways to phrase this error message in a similarly generic fashion @Mathyoub ? |
@dbeatty10 I think that suggested generic error message makes sense! With that being said though I think 1 or 3 are fine options because this seems relatively low priority. Although if 3 is as easy as it seems then maybe we just go ahead and update it? |
I put up a PR to update it here! It's marked as "ready for review", but we can still theoretically make updates to the error message if we want. |
Is this a new bug in dbt-core?
Current Behavior
Main dbt project A calls dependency package B.
Dependency B is not in the package hub, but rather in a customer hosted repo retrieved by git.
When the job runs dbt deps, it fails with a strange error message:
Except that Project A actually has a dbt_project.yml and otherwise runs fine in the IDE.
Further research discovers that Package B is actually missing the dbt_project.yml, and that’s what the error message is actually referring too: a missing .yml in a dependency, not the main project.
Fixing this missing .yml fixes the problem.
However, this error message makes it look more like a system failure (/tmp path) than a user-inflicted error.
Expected Behavior
dbt deps fails, but with an error message stating which dependency (in this case a package URL) has the problem.
Steps To Reproduce
See current behavior
Relevant log output
Environment
Which database adapter are you using with dbt?
No response
Additional Context
Workaround: Examine all called deps for a missing dbt_project.yml
The text was updated successfully, but these errors were encountered: