SE-####: Allow deprecating package products - #10437
Conversation
|
@swift-ci test |
| @@ -0,0 +1,6 @@ | |||
| # SwiftPM 999.0 Release Notes | |||
There was a problem hiding this comment.
chore (possibly-blocking): If this PR is merged after the official SE review period, move the documentation to the appropriate SwiftPM release notes section.
| /// build time. | ||
| /// | ||
| /// - Returns: A `Product` instance. | ||
| @available(_PackageDescription, introduced: 999.0) |
There was a problem hiding this comment.
chore (possibly-blocking): If this PR is merged after the official SE review period, move the documentation to the appropriate SwiftPM release notes section.
| /// - deprecated: An optional ``Product/Deprecation`` value describing the deprecation | ||
| /// state of the product. | ||
| /// - Returns: A `Product` instance. | ||
| @available(_PackageDescription, introduced: 999.0) |
There was a problem hiding this comment.
chore (possibly-blocking): If this PR is merged after the official SE review period, move the documentation to the appropriate SwiftPM release notes section.
| /// - deprecated: An optional ``Product/Deprecation`` value describing the deprecation | ||
| /// state of the product. | ||
| /// - Returns: A `Product` instance. | ||
| @available(_PackageDescription, introduced: 999.0) |
There was a problem hiding this comment.
chore (possibly-blocking): If this PR is merged after the official SE review period, move the documentation to the appropriate SwiftPM release notes section.
| @@ -0,0 +1,41 @@ | |||
| // swift-tools-version:999.0 | |||
There was a problem hiding this comment.
chore (possibly-blocking): If this PR is merged after the official SE review period, move the documentation to the appropriate SwiftPM release notes section.
| @@ -0,0 +1,26 @@ | |||
| // swift-tools-version:999.0 | |||
There was a problem hiding this comment.
chore (possibly-blocking): If this PR is merged after the official SE review period, move the documentation to the appropriate SwiftPM release notes section.
|
@swift-ci test self hosted windows |
|
@swift-ci test windows self hosted |
a97a987 to
bb71410
Compare
|
@swift-ci test |
|
@swift-ci test windows |
|
@swift-ci test |
Add a `deprecated:` parameter to the `.library(...)`, `.executable(...)`, and `.plugin(...)` factory methods on `Product`. The parameter accepts a `Product.Deprecation` value describing the deprecation. `Product.Deprecation` is constructed through a single factory, `.unsupported(message:replacement:)`, where the optional `replacement:` parameter points at the product a consumer should adopt instead. A replacement is either in the same package or in another package. When any consumer package (or another product within the same package) depends on an unsupported product, SwiftPM emits a warning that includes the product name, the producing package's identity, the author-supplied message, and any replacement information declared by the producer. At a minimum, this has been plumbed through to `swift package resolve`, `swift build` and `swift package dump-package`.
bb71410 to
c0f6bdf
Compare
|
@swift-ci test |
|
@swift-ci test windows |
Add a
deprecated:parameter to the.library(...),.executable(...), and.plugin(...)factory methods onProduct. The parameter accepts aProduct.Deprecationvalue describing the deprecation.Product.Deprecationis constructed through a single factory,.unsupported(message:replacement:), where the optionalreplacement:parameter points at the product a consumer should adopt instead. A replacement is either in the same package or in another package.When any consumer package (or another product within the same package) depends on an unsupported product, SwiftPM emits a warning that includes the product name, the producing package's identity, the author-supplied message, and any replacement information declared by the producer. At a minimum, this has been plumbed through to
swift package resolve,swift buildandswift package dump-package.