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

hubcap crashes when it doesn't find a dbt_project.yml file for any release tag #360

Open
dbeatty10 opened this issue Mar 11, 2025 · 0 comments

Comments

@dbeatty10
Copy link
Contributor

dbeatty10 commented Mar 11, 2025

Problem

Error in the source code here:

     with open(repo_dir / Path("dbt_project.yml"), "r") as stream:
FileNotFoundError: [Errno 2] No such file or directory: '/app/target/dlt-hub_dlt-dbt-workable/dbt_project.yml'

Examples:

Potential solution

Do something like this instead:

hubcap/hubcap/package.py

Lines 57 to 62 in ed35180

def has_dbt_project_yml(package, directory):
"""Any package without a dbt_project.yml should be ignored"""
has_yaml = os.path.exists(directory / Path("dbt_project.yml"))
if not has_yaml:
logging.warning(f"{package} has no dbt_project.yml. Skipping...")
return has_yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant