mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-26 01:23:16 +00:00
fix(ingest): avoid git dependency in dbt (#9447)
This commit is contained in:
parent
ffccc65561
commit
66f90c7ffd
@ -6,7 +6,6 @@ from pydantic import Field, FilePath, SecretStr, validator
|
|||||||
|
|
||||||
from datahub.configuration.common import ConfigModel
|
from datahub.configuration.common import ConfigModel
|
||||||
from datahub.configuration.validate_field_rename import pydantic_renamed_field
|
from datahub.configuration.validate_field_rename import pydantic_renamed_field
|
||||||
from datahub.ingestion.source.git.git_import import GitClone
|
|
||||||
|
|
||||||
_GITHUB_PREFIX = "https://github.com/"
|
_GITHUB_PREFIX = "https://github.com/"
|
||||||
_GITLAB_PREFIX = "https://gitlab.com/"
|
_GITLAB_PREFIX = "https://gitlab.com/"
|
||||||
@ -151,6 +150,9 @@ class GitInfo(GitReference):
|
|||||||
) -> pathlib.Path:
|
) -> pathlib.Path:
|
||||||
"""Clones the repo into a temporary directory and returns the path to the checkout."""
|
"""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
|
assert self.repo_ssh_locator
|
||||||
|
|
||||||
git_clone = GitClone(str(tmp_path))
|
git_clone = GitClone(str(tmp_path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user