Emit warning when building package manifest

We also have a check in the plugin code but SwiftPM 5.9.1 and earlier
try to build some completely unsupported packages like swift-nio and
fail with a cryptic error message. Emitting a warning early on should
help users understand what's going on.
This commit is contained in:
Yuta Saito 2024-02-27 02:08:44 +09:00
parent 3086e5fd48
commit 9e93c85676
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@
import PackageDescription
#if swift(<5.9.2)
#warning("Swift 5.9.1 or earlier is not supported by carton")
#endif
let package = Package(
name: "carton",
platforms: [.macOS(.v13)],