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

[Feature] Enable the --no-warn-error CLI flag #10993

Open
2 tasks done
mroy-seedbox opened this issue Nov 13, 2024 · 2 comments
Open
2 tasks done

[Feature] Enable the --no-warn-error CLI flag #10993

mroy-seedbox opened this issue Nov 13, 2024 · 2 comments
Labels
enhancement New feature or request triage

Comments

@mroy-seedbox
Copy link

mroy-seedbox commented Nov 13, 2024

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

Error: No such option: --no-warn-error (Possible options: --no-write-json, --warn-error, --warn-error-options)

Even though it is documented:
image

Expected Behavior

It works.

Steps To Reproduce

dbt --no-warn-error ls

Relevant log output

No response

Environment

- OS: Any
- Python: Any
- dbt: 1.8.8

Which database adapter are you using with dbt?

Any

Additional Context

No response

@dbeatty10
Copy link
Contributor

Thanks for opening this @mroy-seedbox !

You're right that dbt doesn't currently support --no-warn-error CLI flag, so I've opened dbt-labs/docs.getdbt.com#6478 to update our documentation.

It looks to me like we could easily support it though by updating this line to be this instead:

    "--warn-error/--no-warn-error",

What scenarios were you wanting to use the --no-warn-error? If you have the DBT_WARN_ERROR environment variable set to True and you want to override it?

@dbeatty10 dbeatty10 added enhancement New feature or request and removed bug Something isn't working labels Nov 13, 2024
@dbeatty10 dbeatty10 changed the title [Bug] --no-warn-error flag does not work [Feature] Enable the --no-warn-error CLI flag Nov 13, 2024
@mroy-seedbox
Copy link
Author

The scenario was a project with warn_error: True in dbt_project.yml, but with a use case where that needed to be disabled for a specific job/command.

We ended up using warn_error_options instead, but I figured it would be a good idea to report this anyway. 🤷‍♂️

matthewshaver added a commit to dbt-labs/docs.getdbt.com that referenced this issue Nov 14, 2024
## What are you changing in this pull request and why?

There is no `--no-warn-error` CLI flag, so we should remove it from the
documentation.

See dbt-labs/dbt-core#10993 for context.

## Checklist
- [x] I have reviewed the [Content style
guide](https://github.com/dbt-labs/docs.getdbt.com/blob/current/contributing/content-style-guide.md)
so my content adheres to these guidelines.

<!-- vercel-deployment-preview -->
---
🚀 Deployment available! Here are the direct links to the updated files:


-
https://docs-getdbt-com-git-dbeatty10-patch-2-dbt-labs.vercel.app/reference/global-configs/about-global-configs

<!-- end-vercel-deployment-preview -->

Co-authored-by: Matt Shaver <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

2 participants