Skip to content

Commit 98a7d51

Browse files
authored
Avoid stale Poetry cache when locking AINode dependencies (#18329)
1 parent f3d111c commit 98a7d51

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎iotdb-core/ainode/build_binary.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,11 @@ def install_dependencies(venv_python, venv_dir, script_dir):
196196
sys.exit(1)
197197
print(f" Python version: {python_version_result.stdout.strip()}")
198198

199-
# Update lock file and install dependencies
199+
# Regenerate the lock file without cached release metadata because a package's
200+
# platform artifacts may still be uploading when Poetry first sees a release.
200201
print("Running poetry lock...")
201202
result = subprocess.run(
202-
[str(poetry_exe), "lock"],
203+
[str(poetry_exe), "lock", "--no-cache", "--regenerate"],
203204
cwd=str(script_dir),
204205
env=venv_env,
205206
check=False,

0 commit comments

Comments
 (0)