This is an automated email from the ASF dual-hosted git repository.
roryqi pushed a commit to branch branch-1.1
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-1.1 by this push:
new 035da90960 [Cherry-pick to branch-1.1] [HOTFIX] fix: Fix the uv CI
pipeline (#9905) (#9906)
035da90960 is described below
commit 035da90960f52236989620da4c091bbfb61d9788
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Feb 6 19:09:40 2026 +0800
[Cherry-pick to branch-1.1] [HOTFIX] fix: Fix the uv CI pipeline (#9905)
(#9906)
**Cherry-pick Information:**
- Original commit: ba97d63e7427c6da2240cadf5e669f5a204f1e39
- Target branch: `branch-1.1`
- Status: ✅ Clean cherry-pick (no conflicts)
Co-authored-by: roryqi <[email protected]>
---
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 {