Skip to content

[CT-2129] [Bug] dbt --version hangs when access to PyPi is not available #6992

@flyingTiemen

Description

@flyingTiemen

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

When using dbt --version a check is done at PypI.org if a newer version is available.
In many compagnies access to the internet is restricted. In that case dbt --version does wait forever and never exits.

Expected Behavior

Make check at PyPi optional, or at least, timeout this check after some time in a proper way.

Steps To Reproduce

dbt --version without access to PyPi.org

Relevant log output

No response

Environment

- OS: any
- Python: any
- dbt: any

Which database adapter are you using with dbt?

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcligood_first_issueStraightforward + self-contained changes, good for new contributors!paper_cutA small change that impacts lots of users in their day-to-day

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions