Skip to content

disable_elementary_version_check only works if the config file is in the default directory #1860

Open
@pquadri

Description

@pquadri

Describe the bug
After upgrading Elementary we started having an issue (in k8s, with no write access to the disk) of it trying to create a folder in the home directory, even though we specified a different config_dir.
The initialization of Config() done to check disable_elementary_version_check does not pass any parameter, and searches for the config file only in the default path.

To Reproduce
Put a config file anywhere but in the default directory and check that the disable_elementary_version_check is not picked up correctly.

Expected behavior
Every usage of Config() picks up the relevant CLI arguments.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Elementary CLI (edr) version: 0.17.0
  • Elementary dbt package version: 0.17.0
  • dbt version you're using 1.8.3
  • Data warehouse Snowflake
  • Infrastructure details: Docker container on K8s in production

Additional context
Add any other context about the problem here.

Would you be willing to contribute a fix for this issue?
Let us know if you're willing to contribute so that we'll be able to provide guidance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions