Skip to content

Commit fc8d9b3

Browse files
authored
Delete Examples/package-info directory as outdated (#7434)
This example package was created many years ago during an initial attempt of versioning SwiftPM with semver. That approach has been abandoned since then, and SwiftPM doesn't provide any stable API outside of `PackageDescription` and `PackagePlugin` modules. This example code can mislead users of SwiftPM to believe that it can be consumed as a library with a stable API in other modules, which is currently not the case.
1 parent 26b4ed0 commit fc8d9b3

File tree

4 files changed

+0
-83
lines changed

4 files changed

+0
-83
lines changed

Examples/package-info/Package.swift

-25
This file was deleted.

Examples/package-info/README.md

-3
This file was deleted.

Examples/package-info/Sources/package-info/example.swift

-49
This file was deleted.

Package.swift

-6
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,6 @@ let package = Package(
664664
name: "XCBuildSupportTests",
665665
dependencies: ["XCBuildSupport", "SPMTestSupport"],
666666
exclude: ["Inputs/Foo.pc"]
667-
),
668-
// Examples (These are built to ensure they stay up to date with the API.)
669-
.executableTarget(
670-
name: "package-info",
671-
dependencies: ["Workspace"],
672-
path: "Examples/package-info/Sources/package-info"
673667
)
674668
],
675669
swiftLanguageVersions: [.v5]

0 commit comments

Comments
 (0)