Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin' into sqlfluff-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
z3z1ma committed Oct 13, 2022
2 parents 248909f + c67bc84 commit 1000f81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dbt_osmosis/main.py
@@ -1,4 +1,5 @@
import functools
import importlib.util
import multiprocessing
import subprocess
import sys
Expand Down Expand Up @@ -300,6 +301,11 @@ def serve(
):
"""Runs a lightweight server compatible with dbt-power-user and convenient for interactively
running or compile dbt SQL queries with two simple endpoints accepting POST messages"""
if importlib.util.find_spec('sqlfluff_templater_dbt'):
logger().error("sqlfluff-templater-dbt is not compatible with dbt-osmosis server. "
"Please uninstall it to continue.")
sys.exit(1)

logger().info(":water_wave: Executing dbt-osmosis\n")

def _register_project():
Expand Down

0 comments on commit 1000f81

Please sign in to comment.