Skip to content
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

[Bug] dbt source freshness doesn't care require-dbt-version with 0.21.0 #4142

Closed
1 task done
yu-iskw opened this issue Oct 27, 2021 · 1 comment
Closed
1 task done
Labels
bug Something isn't working

Comments

@yu-iskw
Copy link
Contributor

yu-iskw commented Oct 27, 2021

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Even if we specify older version(s) with require-dbt-version, dbt source freshness ignores the version constrain.

Expected Behavior

dbt source freshness should not work with older version constrain.

Running with dbt=0.21.0
Encountered an error while reading the project:
  ERROR: Runtime Error
  This version of dbt is not supported with the 'xxx' package.
    Installed version of dbt: =0.21.0
    Required version of dbt for 'xxx': ['=0.19.0']
  Check the requirements for the 'xxx' package, or run dbt again with --no-version-check

Steps To Reproduce

  1. Install dbt 0.21.0
  2. Specify older version with require-dbt-version: "0.19.0"
  3. Execute dbt source freshness

Relevant log output

No response

Environment

- OS: maxOS Big Sur
- Python: 3.8.8
- dbt: 0.21.0

What database are you using dbt with?

bigquery

Additional Context

No response

@yu-iskw yu-iskw added bug Something isn't working triage labels Oct 27, 2021
@jtcohen6 jtcohen6 removed the triage label Oct 27, 2021
@jtcohen6
Copy link
Contributor

Thanks for the report @yu-iskw. In all dbt versions up to v0.21, there is a lot of inconsistency in which commands used/respected require-dbt-version + --no-version-check.

For v1, we reworked all "global configs" (#3839), including VERSION_CHECK, so that now:

  • All commands will adhere to version checks
  • Version checking is on by default
  • You can turn version checking off via CLI flag (--no-version-check), env var (VERSION_CHECK=False), or profiles.yml config

Prerelease docs on this: https://next.docs.getdbt.com/reference/global-configs#checking-version-compatibility

I'm going to close this issue, since I believe it's resolved in the next version of dbt-core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants