Skip to content

Conversation

@alexey1312
Copy link

Summary

  • Replace branch: "main" with from: "2.29.3" for mlx-swift-lm dependency

Problem

When consumers try to use AnyLanguageModel with semantic versioning:

.package(url: "...", from: "0.5.3")

SPM fails to resolve dependencies because branch: "main" is incompatible with version-based transitive dependency resolution:

error: exhausted attempts to resolve the dependencies graph, with the following dependencies unresolved:
* 'mlx-swift-lm' from https://github.com/ml-explore/mlx-swift-lm

Solution

Pin mlx-swift-lm to version 2.29.3 (latest stable release) instead of tracking the main branch.

Test plan

  • swift package resolve succeeds
  • swift build succeeds

Replace `branch: "main"` with `from: "2.29.3"` for mlx-swift-lm dependency.

This fixes SPM dependency resolution failures when consumers use
AnyLanguageModel with semantic versioning (e.g., `from: "0.5.3"`).
The branch-based dependency is incompatible with version-based
transitive dependency resolution.
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