[Bug]: Pixi dependency resolution fails globally due to invalid CUDA targets for macOS
#3521 opened on Jan 23, 2026
Description
🐛 Describe the bug
The pixi.toml configuration attempts to solve the cuda environment for all workspace platforms, including osx-arm64. Because CUDA builds of PyTorch do not exist for macOS ARM, the global dependency solver fails. Crucially, this affects users on Linux as well, as pixi add attempts to resolve the lockfile for all platforms simultaneously and fails when it hits the invalid osx-arm64 + cuda combination.
🔄 Steps to Reproduce
1.Clone the repository.
2.Run `pixi add torch` (or any dependency).
3.Error: × failed to solve requirements of environment 'cuda' for platform 'osx-arm64'
├─▶ × failed to solve the environment
│
╰─▶ Cannot solve the request because of: No candidates were found for torch *.
💻 Minimal Code Example
✅ Expected behavior
The solver should successfully resolve dependencies for the current platform (Linux). The cuda feature should be explicitly restricted to supported platforms (linux, win) in pixi.toml so the solver doesn't attempt to find non-existent packages for macOS.
❌ Actual behavior
The Pixi solver crashes during dependency resolution, blocking developers on Linux from adding or updating packages.
🔧 Environment
OS: Linux (Ubuntu/Debian)
Pixi version: Latest
Context: Trying to set up the dev environment or add packages.
📝 Additional context
🤝 Contribution Intent
- I plan to submit a PR to fix this bug
- I'm reporting this bug but not planning to fix it