I am attempting to build a sample package built on top of libSwiftPM, inspired by https://github.com/apple/swift-package-manager/tree/main/Examples/package-info, but I get a build error when declaring
SwiftPM as an external package dependency
// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "swift-package-info", dependencies: [ // Dependencies declare other packages that this package depends on. .package(name: "SwiftPM", url: "https://github.com/apple/swift-package-manager.git", .exact("0.6.0")), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages this package depends on. .target( name: "swift-package-info", dependencies: ["SwiftPM"]), .testTarget( name: "swift-package-infoTests", dependencies: ["swift-package-info"]), ] )
Reproducible with https://github.com/MarcoEidinger/swift-package-info
Is this an issue from SPM or is using SwiftPM as external package dependency not supported?