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

fix(ingest): avoid git dependency in dbt #9447

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion metadata-ingestion/src/datahub/configuration/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from datahub.configuration.common import ConfigModel
from datahub.configuration.validate_field_rename import pydantic_renamed_field
from datahub.ingestion.source.git.git_import import GitClone

_GITHUB_PREFIX = "https://github.com/"
_GITLAB_PREFIX = "https://gitlab.com/"
Expand Down Expand Up @@ -151,6 +150,9 @@ def clone(
) -> pathlib.Path:
"""Clones the repo into a temporary directory and returns the path to the checkout."""

# We import this here to avoid a hard dependency on gitpython.
from datahub.ingestion.source.git.git_import import GitClone

assert self.repo_ssh_locator

git_clone = GitClone(str(tmp_path))
Expand Down
Loading