Skip to content

Commit

Permalink
add marker file that disables compatibility matrix for Swift on Linux…
Browse files Browse the repository at this point in the history
… at SPI (#181)
  • Loading branch information
heckj authored May 30, 2024
1 parent 64358eb commit e06632b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/Automerge/_AutomergeLinux.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#if os(Linux)
// Error on compilation on Linux - The XCFramework, on which this package depends, could be made
// available for a variety of platforms, but there's not much of a smooth path to providing those
// binary assets for Swift on Linux.
//
// This file exists so that the compatibility indicators on Swift Package Index don't infer that
// this package is easily installed and used with Swift on Linux,
#error("This explicit error is to indicate that this package doesn't support Linux as it stands")
#endif
1 change: 1 addition & 0 deletions Tests/AutomergeTests/TestObservableDocument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class ObservableDocumentTestCase: XCTestCase {
let collection = doc.objectWillChange.sink {
stashedHeads = doc.heads()
}
XCTAssertNotNil(collection)
try doc.spliceText(obj: text, start: 0, delete: 0, value: "hello world!")
XCTAssertNotEqual(doc.heads(), stashedHeads)
}
Expand Down

0 comments on commit e06632b

Please sign in to comment.