Skip to content

Commit 942dea2

Browse files
committed
fix: remove obsolete version check
1 parent b2bb14d commit 942dea2

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/dbt_integration/dbtCloudIntegration.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import semver = require("semver");
2626
import { NodeMetaData } from "./domain";
2727
import * as crypto from "crypto";
2828
import { parse } from "yaml";
29-
import { window } from "vscode";
3029

3130
export function getDBTPath(
3231
pythonEnvironment: PythonEnvironment,
@@ -71,23 +70,6 @@ export class DBTCloudDetection implements DBTDetection {
7170
throw new Error(stderr);
7271
}
7372
if (stdout.includes("dbt Cloud CLI")) {
74-
const regex = /dbt Cloud CLI - (\d*\.\d*\.\d*)/gm;
75-
const matches = regex.exec(stdout);
76-
if (matches?.length === 2) {
77-
const minVersion = "0.37.6";
78-
const currentVersion = matches[1];
79-
if (semver.lt(currentVersion, minVersion)) {
80-
window.showErrorMessage(
81-
`This version of dbt Cloud is not supported. Please update to a dbt Cloud CLI version higher than ${minVersion}`,
82-
);
83-
this.terminal.debug(
84-
"DBTCLIDetectionFailed",
85-
"dbt cloud cli was found but version is not supported. Detection command returned : " +
86-
stdout,
87-
);
88-
return true;
89-
}
90-
}
9173
this.terminal.debug("DBTCLIDetectionSuccess", "dbt cloud cli detected");
9274
return true;
9375
} else {

0 commit comments

Comments
 (0)