Skip to content

Commit

Permalink
add version detection for declarative source
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Sep 12, 2024
1 parent 95dead4 commit 759e530
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions airbyte/_executors/declarative.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ def __init__(

self.reported_version: str | None = self._manifest_dict.get("version", None)

def get_installed_version(
self,
*,
raise_on_error: bool = False,
recheck: bool = False,
) -> str | None:
"""Detect the version of the connector installed."""
_ = raise_on_error, recheck # Not used
return self.reported_version

def _validate_manifest(self, manifest_dict: dict) -> None:
"""Validate the manifest."""
manifest_text = yaml.safe_dump(manifest_dict)
Expand Down

0 comments on commit 759e530

Please sign in to comment.