Skip to content

Commit a85dde2

Browse files
committed
Gracefully abort when dbt versions >= 1.0.0 attempted to install through Homebrew
1 parent e9119a7 commit a85dde2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dbtenv/homebrew.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ def __init__(self, env: Environment, version: Version) -> None:
6666
self._executable: Optional[str] = None
6767

6868
def install(self, force: bool = False) -> None:
69+
if self.version >= Version('1.0.0'):
70+
raise DbtenvError(
71+
"dbtenv does not support installing dbt versions greater than or equal to 1.0.0 through Homebrew. Configure dbtenv to use pip instead.")
72+
6973
if self.is_installed():
7074
if force:
7175
logger.info(f"dbt {self.version.homebrew_version} is already installed with Homebrew but will be reinstalled.")

0 commit comments

Comments
 (0)