-
Notifications
You must be signed in to change notification settings - Fork 134
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
dbt deps on BigQuery requires either gcloud auth or "project" set #27
Comments
Good call @max-sixty. Really, We've tried to work around this by having For example:
Because the project/database is set via I think the real long-term answer here is to just not have |
Thanks for the diagonsis @jtcohen6 I likely won't get to this — we are fine with the |
@jtcohen6 I think @max-sixty 's error is occurring ahead of where you're suggesting. I tried running
This is because the Doesn't look like it's as simple as adding a default I assume based on your convo that this is still unintended behavior, although different from what max was seeing. Could add an intermediary class that |
@anthonymichaelclark I believe you're seeing the error reported by @max-sixty over in dbt-labs/dbt-core#3218. That was a regression in v0.19.1, and we plan to include a fix for it in a v0.19.2 patch release. In the meantime, I think you should be able to resolve that error by including this in `profiles.yml: project: "{{ 'None' | as_native }}" |
@jtcohen6 keen to take a crack at removing Was going to prod around here https://github.com/dbt-labs/dbt/blob/develop/core/dbt/task/deps.py#L18-L21 and see if I can simply remove and resemblance of "profiles" here. |
@jeremyyeo I think removing the requirement for anything resembling a That is, you can use it to still access contextual information about the project (such as its defined To that end, if the So I think the much simpler resolution of this issue, leveraging existing art, is to catch the exception raised by |
I get the same issue when I run dbt compile 06:25:06 Running with dbt=1.1.1
|
Describe the bug & Steps To Reproduce
Running
dbt deps
with aprofiles.yml
which a) doesn't have a project and b) in an environment without a valid gcloud auth (such as a docker build):Raises an error:
These works:
project:
uncommenteddbt deps --target=null
Expected behavior
Does
dbt deps
need the database / project name at that stage? If so, this is the correct behavior. But if not, there's no need to break in a docker build.System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
MacOS
The output of
python --version
:Python 3.8.8
The text was updated successfully, but these errors were encountered: