Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[HOTFIX] fix: Fix the uv CI pipeline (#9905)

roryqiba97d63e7427
diff --git a/mcp-server/build.gradle.kts b/mcp-server/build.gradle.kts
index 0aa3dd8d0f..fe773fcf62 100644
--- a/mcp-server/build.gradle.kts
+++ b/mcp-server/build.gradle.kts
@@ -117,7 +117,12 @@ tasks {
doFirst {
println("UV executable path: ${getUvExecutable()}")
- commandLine(getUvExecutable(), "venv", venvDir.absolutePath)
+ if (venvDir.exists()) {
+ logger.lifecycle("Virtual environment already exists at: ${venvDir.absolutePath}, clearing...")
+ commandLine(getUvExecutable(), "venv", "--clear", venvDir.absolutePath)
+ } else {
+ commandLine(getUvExecutable(), "venv", venvDir.absolutePath)
+ }
}
doLast {