Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot Testing Version Mixmatch #103

Closed
nonfungibletunji opened this issue Oct 5, 2023 · 2 comments
Closed

Snapshot Testing Version Mixmatch #103

nonfungibletunji opened this issue Oct 5, 2023 · 2 comments

Comments

@nonfungibletunji
Copy link

error: the library 'HtmlSnapshotTesting' requires macos 10.13, but depends on the product 'SnapshotTesting' which requires macos 10.15; consider changing the library 'HtmlSnapshotTesting' to require macos 10.15 or later, or the product 'SnapshotTesting' to require macos 10.13 or earlier.

@lukesutton
Copy link

I'm also seeing this same issue on MacOS Sonoma. Specifically when using swift-html-vapor v0.4.0.

@ferologics
Copy link

for anyone running into this you can depend on the main branch and set your package's platform target to v10_15

// swift-tools-version:5.9

import PackageDescription

let package = Package(
  name: "foo",
  platforms: [ .macOS(.v10_15), ], // 👈
  dependencies: [
    .package(url: "https://github.com/pointfreeco/swift-html", branch: "main"),  // 👈
  ],
  targets: [
    .target(
      name: "web",
      dependencies: [
        .product(name: "Html", package: "swift-html"),
      ],
      path: "Sources/foo/"
    )
  ]
)

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

No branches or pull requests

4 participants