-
Notifications
You must be signed in to change notification settings - Fork 1.4k
6.0: [SE-0301] Implement package manifest editing command-line options #7494
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
Merged
DougGregor
merged 5 commits into
swiftlang:release/6.0
from
DougGregor:se-0301-package-manifest-editing-6.0
Apr 25, 2024
Merged
6.0: [SE-0301] Implement package manifest editing command-line options #7494
DougGregor
merged 5 commits into
swiftlang:release/6.0
from
DougGregor:se-0301-package-manifest-editing-6.0
Apr 25, 2024
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…om the command line (swiftlang#7467) (cherry picked from commit 47573ce)
…-syntax (swiftlang#7476) (cherry picked from commit d30647a)
swiftlang#7477) Introduce support for adding a new product to the package manifest, both programmatically (via PackageModelSyntax) and via the `swift package add-product` command. Help for this command is: OVERVIEW: Add a new product to the manifest USAGE: swift package add-product <name> [--type <type>] [--targets <targets> ...] [--url <url>] [--path <path>] [--checksum <checksum>] ARGUMENTS: <name> The name of the new product OPTIONS: --type <type> The type of target to add, which can be one of 'executable', 'library', 'static-library', 'dynamic-library', or 'plugin' (default: library) --targets <targets> A list of targets that are part of this product --url <url> The URL for a remote binary target --path <path> The path to a local binary target --checksum <checksum> The checksum for a remote binary target --version Show the version. -h, -help, --help Show help information. (cherry picked from commit a408054)
@swift-ci please test |
I'd also like to pick up #7486 in this PR once it's ready |
MaxDesiatov
approved these changes
Apr 24, 2024
Also, use `SPMSwiftSyntax::` namespace to avoid potential name conflict issues. (cherry picked from commit 4f83c6d)
In the case that a shared copy of swift-syntax is being used to build, allow the sources to be unavailable. If the user specifies `SWIFTPM_PATH_TO_SWIFT_SYNTAX_SOURCE`, that will be preferred, otherwise, we fallback to the upstream git repository. (cherry picked from commit dbd8945)
@swift-ci please test |
@swift-ci please test Windows |
@swift-ci please test macOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
add to change log
enhancement
package manifests
changes to package manifest APIs
swift 6.0
Related to Swift 6.0 release branch
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
swift package add-dependency
,swift package add-target
,swift package add-product
) described in SE-0301, using swift-syntax under the hood to perform the edits.