Skip to content

Fix: Add bundled uv to PATH for Linux/macOS package launches - #1721

Merged
mohnjiles merged 1 commit into
LykosAI:mainfrom
NeuralFault:fix-linux-uv
Aug 23, 2026
Merged

Fix: Add bundled uv to PATH for Linux/macOS package launches#1721
mohnjiles merged 1 commit into
LykosAI:mainfrom
NeuralFault:fix-linux-uv

Conversation

@NeuralFault

@NeuralFault NeuralFault commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

The bundled UV currently does not get passed to package launches on Linux/MacOS installs, just on Windows.
This leads to WebUI packages not being able to utilize UV if required/attempted when the user does not have a system-wide UV installed in their OS, or otherwise added to PATH by the user.

This is currently causing Forge Neo installs to fail on Linux with 'Error: 2 uv not found'.

This fix applies the SM bundled UV to be passed to package launches regardless of OS env path. While keeping the PortableGit path specific to Windows installs.

Potentially fixes #1713 as Forge Neo is very uv-dependent and the package config for forge-neo in the project by default launches Neo with --uv extended from ForgeClassic.cs: var launchArgs = new List<string> { "launch.py", "--uv", "--exit" } which runs Neo's launch process through its UV path in modules_forge/uv_hook.py which requires UV to be on PATH. User may have had UV installed system-wide but still cascaded to failure.

- Prepend the bundled uv directory (Assets/uv) to PATH in UvVenvRunner.RunDetached on non-Windows platforms
- Lets package launch scripts that invoke `uv` (e.g. Forge Neo) find it without a system install
- Declare the uv path once, above the platform branches, so both Windows and non-Windows paths reuse it
@mohnjiles
mohnjiles merged commit ebe33ce into LykosAI:main Aug 23, 2026
3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't install Stable Diffusion - Neo on Linux.

3 participants