Skip to content

Commit 28489b0

Browse files
tenpercentclaude
andcommitted
Use pipx to install uv instead of piping curl to bash
- Install uv via Ubuntu package manager (pipx) for security - Avoids piping curl to bash which is a security concern - More reliable and verifiable installation method - Auto-installs pipx via apt if not already present - Update documentation to reflect package-based installation Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 52037f9 commit 28489b0

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

.claude/skills/ck-build-analysis

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,15 @@ docker cp "${SCRIPT_DIR}/templates" "${CONTAINER_NAME}:/tmp/ck_build_analysis_te
168168

169169
# Check if uv is available, install if needed, and use for PEP 723 dependency management
170170
if ! docker exec "${CONTAINER_NAME}" bash -c "command -v uv >/dev/null 2>&1 || test -x \$HOME/.local/bin/uv"; then
171-
echo "uv not found, installing..."
172-
docker exec "${CONTAINER_NAME}" bash -c "curl -LsSf https://astral.sh/uv/install.sh | sh" >/dev/null 2>&1
171+
echo "uv not found, installing via pipx..."
172+
docker exec "${CONTAINER_NAME}" bash -c "
173+
# Install pipx if not available
174+
if ! command -v pipx >/dev/null 2>&1; then
175+
apt-get update -qq && apt-get install -y -qq pipx >/dev/null 2>&1
176+
fi
177+
# Install uv via pipx
178+
pipx install uv >/dev/null 2>&1
179+
"
173180
echo "uv installed successfully"
174181
fi
175182

.claude/skills/ck-build-analysis.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,13 @@ The analysis script (`analyze_build_trace.py`) is PEP 723 compliant with inline
134134

135135
**No manual setup required!** The first time you run the skill, it will:
136136
1. Detect if `uv` is installed in the container
137-
2. If not, automatically install it (takes ~5 seconds)
137+
2. If not, automatically install it via Ubuntu packages (pipx install uv)
138138
3. Use `uv run` to execute the analysis with auto-managed dependencies
139139

140140
On subsequent runs, `uv` will already be available and dependencies will be cached.
141141

142+
Installation is done through Ubuntu's package manager for security and reliability.
143+
142144
### Components
143145

144146
- **ck-build-analysis** - Main bash script that orchestrates Docker, CMake, and analysis

0 commit comments

Comments
 (0)