This is an automated email from the ASF dual-hosted git repository.
yuqi4733 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/main by this push:
new ba97d63e74 [HOTFIX] fix: Fix the uv CI pipeline (#9905)
ba97d63e74 is described below
commit ba97d63e7427c6da2240cadf5e669f5a204f1e39
Author: roryqi <[email protected]>
AuthorDate: Fri Feb 6 16:44:13 2026 +0800
[HOTFIX] fix: Fix the uv CI pipeline (#9905)
### What changes were proposed in this pull request?
Fix the uv CI pipeline
https://github.com/apache/gravitino/actions/runs/21737282711/job/62704955508
We can't run the CI pipeline now.
### Why are the changes needed?
This is a hot fix
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
No.
---
mcp-server/build.gradle.kts | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
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 {