mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
fix(ci): Clear UV cache directory instead of lock file
The previous approach of removing uv.lock caused dependency resolution failures. The real issue is the UV_CACHE_DIR that contains pre-built wheels with old code. This commit: 1. Keeps uv.lock (it's part of the project) 2. Clears UV_CACHE_DIR (where compiled wheels are cached) 3. Forces uv to rebuild wheels from source This ensures the latest source code changes are picked up without breaking dependency resolution.
This commit is contained in:
parent
6aaf4ad080
commit
8b6588dc1e
1 changed files with 8 additions and 3 deletions
11
.github/actions/setup-runner/action.yml
vendored
11
.github/actions/setup-runner/action.yml
vendored
|
|
@ -37,12 +37,17 @@ runs:
|
||||||
echo "Exported UV environment variables for current and subsequent steps"
|
echo "Exported UV environment variables for current and subsequent steps"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Clearing Python bytecode cache and lock file to ensure fresh install"
|
echo "Clearing Python bytecode cache and uv cache to ensure fresh install"
|
||||||
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
|
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
|
||||||
find . -name "*.pyc" -delete 2>/dev/null || true
|
find . -name "*.pyc" -delete 2>/dev/null || true
|
||||||
rm -f uv.lock
|
|
||||||
|
|
||||||
echo "Syncing dependencies (will regenerate lock file)"
|
# Clear uv's cache directory to force rebuilding wheels from source
|
||||||
|
if [ -n "$UV_CACHE_DIR" ] && [ -d "$UV_CACHE_DIR" ]; then
|
||||||
|
echo "Clearing UV cache at $UV_CACHE_DIR"
|
||||||
|
rm -rf "$UV_CACHE_DIR"/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Syncing dependencies with uv"
|
||||||
uv sync --all-groups
|
uv sync --all-groups
|
||||||
|
|
||||||
echo "Force reinstalling llama-stack from source to ensure latest changes"
|
echo "Force reinstalling llama-stack from source to ensure latest changes"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue