Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix(mlx-server): pin swift-distributed-tracing and swift-service-context (#9243)

James Dam8b81ed36560b
diff --git a/mlx-server/Package.swift b/mlx-server/Package.swift
index 54edf645d..c9bdafa49 100644
--- a/mlx-server/Package.swift
+++ b/mlx-server/Package.swift
@@ -22,6 +22,12 @@ let package = Package(
.package(url: "https://github.com/huggingface/swift-jinja.git", "2.3.0"..<"2.4.0"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.7.0"),
.package(url: "https://github.com/hummingbird-project/hummingbird", from: "2.19.0"),
+ // Pin Hummingbird's transitive tracing packages: swift-distributed-tracing 1.6.0
+ // stopped depending on swift-service-context (1.4.0 inverted the edge), so
+ // Hummingbird 2.27.1's `import ServiceContextModule` no longer resolves. Drop
+ // once a Hummingbird release requires sdt 1.6 (hummingbird-project/hummingbird#922).
+ .package(url: "https://github.com/apple/swift-distributed-tracing.git", "1.3.0"..<"1.6.0"),
+ .package(url: "https://github.com/apple/swift-service-context.git", "1.1.0"..<"1.4.0"),
],
targets: [
.executableTarget(