Skip to content

fix(venv): use only the vendored uv, drop system-PATH fallback#52

Merged
rahlk merged 2 commits into
mainfrom
fix/uv-bin-no-path-fallback
Jun 27, 2026
Merged

fix(venv): use only the vendored uv, drop system-PATH fallback#52
rahlk merged 2 commits into
mainfrom
fix/uv-bin-no-path-fallback

Conversation

@rahlk

@rahlk rahlk commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Makes _uv_bin use only the vendored uv and drop the system-PATH fallback. Plus a 0.3.0 changelog entry.

Motivation and Context

uv is a declared dependency, so its binary is always present in our install (including Docker). Falling back to shutil.which("uv") could pick up an arbitrary, possibly mismatched uv from the user's PATH. We want the pinned, vendored one.

How Has This Been Tested?

Existing test suite passes locally. The change only affects which uv binary is resolved (or None, in which case callers already fall back to pip).

Breaking Changes

None for normal installs. Only a setup that relied on _uv_bin finding a PATH uv when the uv package was missing is affected, and that path now returns None and falls back to pip.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the Codellm-Devkit Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Before: return shutil.which("uv") on import failure.
After: return None on import failure, so only the vendored uv is ever used.

The changelog gains a 0.3.0 section. That release had no entry yet, so it also records the level 2 PyCG backend and the adaptive sharding that already merged to main.

rahlk added 2 commits June 27, 2026 12:37
_uv_bin no longer falls back to a uv found on PATH. The uv PyPI package is a
declared dependency and is always present in our install (including Docker),
so the analyzer should use that pinned, vendored binary rather than whatever
uv happens to be on the user's PATH. Returns None only if the package is
missing, in which case callers fall back to pip.
@rahlk rahlk merged commit 4629155 into main Jun 27, 2026
@rahlk rahlk deleted the fix/uv-bin-no-path-fallback branch June 27, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant